Skip to content

Commit 24e31cd

Browse files
committed
refresh with latest schema-salad, proposed CWL v1.2.1 changes
1 parent 1b53530 commit 24e31cd

13 files changed

+46
-21
lines changed

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

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@
1717
import org.w3id.cwl.cwl1_2.utils.ValidationException;
1818

1919
public enum CWLType {
20+
NULL("null"),
21+
BOOLEAN("boolean"),
22+
INT("int"),
23+
LONG("long"),
24+
FLOAT("float"),
25+
DOUBLE("double"),
26+
STRING("string"),
2027
FILE("File"),
2128
DIRECTORY("Directory");
2229

23-
private static String[] symbols = new String[] {"File", "Directory"};
30+
private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string", "File", "Directory"};
2431
private String docVal;
2532

2633
private CWLType(final String docVal) {

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

+4
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ public interface CommandLineTool extends Process, Savable {
193193
* Capture the command's standard output stream to a file written to
194194
* the designated output directory.
195195
*
196+
* If the `CommandLineTool` contains logically chained commands
197+
* (e.g. `echo a && echo b`) `stdout` must include the output of
198+
* every command.
199+
*
196200
* If `stdout` is a string, it specifies the file name to use.
197201
*
198202
* If `stdout` is an expression, the expression is evaluated and must

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

+4
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ public Object getStderr() {
273273
* Capture the command's standard output stream to a file written to
274274
* the designated output directory.
275275
*
276+
* If the `CommandLineTool` contains logically chained commands
277+
* (e.g. `echo a && echo b`) `stdout` must include the output of
278+
* every command.
279+
*
276280
* If `stdout` is a string, it specifies the file name to use.
277281
*
278282
* If `stdout` is an expression, the expression is evaluated and must

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* Auto-generated interface for <I>https://w3id.org/cwl/cwl#InitialWorkDirRequirement</I><BR>This interface is implemented by {@link InitialWorkDirRequirementImpl}<BR> <BLOCKQUOTE>
2121
Define a list of files and subdirectories that must be staged by the workflow platform prior to executing the command line tool.
22-
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`. Together with `DockerRequirement.dockerOutputDirectory` this it possible to control the locations of both input and output files when running in containers. </BLOCKQUOTE>
22+
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. </BLOCKQUOTE>
2323
*/
2424
public interface InitialWorkDirRequirement extends ProcessRequirement, Savable {
2525
/**

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* Auto-generated class implementation for <I>https://w3id.org/cwl/cwl#InitialWorkDirRequirement</I><BR> <BLOCKQUOTE>
2525
Define a list of files and subdirectories that must be staged by the workflow platform prior to executing the command line tool.
26-
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`. Together with `DockerRequirement.dockerOutputDirectory` this it possible to control the locations of both input and output files when running in containers. </BLOCKQUOTE>
26+
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. </BLOCKQUOTE>
2727
*/
2828
public class InitialWorkDirRequirementImpl extends SavableImpl implements InitialWorkDirRequirement {
2929
private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build();

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ public interface SecondaryFileSchema extends Savable {
7070
* secondary file from that expression.
7171
*
7272
* To work on non-filename-preserving storage systems, portable
73-
* tool descriptions should treat `location` as an opaque
74-
* identifier and avoid constructing new values from `location`,
75-
* but should construct relative references using `basename` or
76-
* `nameroot` instead, or propagate `location` from defined inputs.
73+
* tool descriptions should treat `location` as an
74+
* [opaque identifier](#opaque-strings) and avoid constructing new
75+
* values from `location`, but should construct relative references
76+
* using `basename` or `nameroot` instead, or propagate `location`
77+
* from defined inputs.
7778
*
7879
* If a value in `secondaryFiles` is a string that is not an expression,
7980
* it specifies that the following pattern should be applied to the path

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ public class SecondaryFileSchemaImpl extends SavableImpl implements SecondaryFil
8080
* secondary file from that expression.
8181
*
8282
* To work on non-filename-preserving storage systems, portable
83-
* tool descriptions should treat `location` as an opaque
84-
* identifier and avoid constructing new values from `location`,
85-
* but should construct relative references using `basename` or
86-
* `nameroot` instead, or propagate `location` from defined inputs.
83+
* tool descriptions should treat `location` as an
84+
* [opaque identifier](#opaque-strings) and avoid constructing new
85+
* values from `location`, but should construct relative references
86+
* using `basename` or `nameroot` instead, or propagate `location`
87+
* from defined inputs.
8788
*
8889
* If a value in `secondaryFiles` is a string that is not an expression,
8990
* it specifies that the following pattern should be applied to the path

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
/**
2020
* Auto-generated interface for <I>https://w3id.org/cwl/cwl#ShellCommandRequirement</I><BR>This interface is implemented by {@link ShellCommandRequirementImpl}<BR> <BLOCKQUOTE>
2121
Modify the behavior of CommandLineTool to generate a single string
22-
containing a shell command line. Each item in the argument list must be
23-
joined into a string separated by single spaces and quoted to prevent
22+
containing a shell command line. Each item in the `arguments` list must
23+
be joined into a string separated by single spaces and quoted to prevent
2424
intepretation by the shell, unless `CommandLineBinding` for that argument
2525
contains `shellQuote: false`. If `shellQuote: false` is specified, the
2626
argument is joined into the command string without quoting, which allows

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
/**
2424
* Auto-generated class implementation for <I>https://w3id.org/cwl/cwl#ShellCommandRequirement</I><BR> <BLOCKQUOTE>
2525
Modify the behavior of CommandLineTool to generate a single string
26-
containing a shell command line. Each item in the argument list must be
27-
joined into a string separated by single spaces and quoted to prevent
26+
containing a shell command line. Each item in the `arguments` list must
27+
be joined into a string separated by single spaces and quoted to prevent
2828
intepretation by the shell, unless `CommandLineBinding` for that argument
2929
contains `shellQuote: false`. If `shellQuote: false` is specified, the
3030
argument is joined into the command string without quoting, which allows

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,11 @@ public interface WorkflowOutputParameter extends OutputParameter, Savable {
124124
/**
125125
* Getter for property <I>https://w3id.org/cwl/cwl#outputSource</I><BR>
126126
* <BLOCKQUOTE>
127-
* Specifies one or more workflow parameters that supply the value of to
128-
* the output parameter.
127+
* Specifies one or more names of an output from a workflow step (in the form
128+
* `step_name/output_name` with a `/` separator`), or a workflow input name,
129+
* that supply their value(s) to the output parameter.
130+
* the output parameter. It is valid to reference workflow level inputs
131+
* here.
129132
* * </BLOCKQUOTE>
130133
*/
131134

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,11 @@ public Object getFormat() {
164164
/**
165165
* Getter for property <I>https://w3id.org/cwl/cwl#outputSource</I><BR>
166166
* <BLOCKQUOTE>
167-
* Specifies one or more workflow parameters that supply the value of to
168-
* the output parameter.
167+
* Specifies one or more names of an output from a workflow step (in the form
168+
* `step_name/output_name` with a `/` separator`), or a workflow input name,
169+
* that supply their value(s) to the output parameter.
170+
* the output parameter. It is valid to reference workflow level inputs
171+
* here.
169172
* * </BLOCKQUOTE>
170173
*/
171174

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ public interface WorkflowStep extends Identified, Labeled, Documented, Savable {
169169
/**
170170
* Getter for property <I>https://w3id.org/cwl/cwl#run</I><BR>
171171
* <BLOCKQUOTE>
172-
* Specifies the process to run.
172+
* Specifies the process to run. If `run` is a string, it must be an absolute IRI
173+
* or a relative path from the primary document.
173174
* * </BLOCKQUOTE>
174175
*/
175176

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ public java.util.Optional<java.util.List<Object>> getHints() {
214214
/**
215215
* Getter for property <I>https://w3id.org/cwl/cwl#run</I><BR>
216216
* <BLOCKQUOTE>
217-
* Specifies the process to run.
217+
* Specifies the process to run. If `run` is a string, it must be an absolute IRI
218+
* or a relative path from the primary document.
218219
* * </BLOCKQUOTE>
219220
*/
220221

0 commit comments

Comments
 (0)