We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8d0cb commit 9cd2b49Copy full SHA for 9cd2b49
src/main/java/org/commonwl/view/cwl/CWLProcess.java
@@ -23,20 +23,18 @@
23
* Enum for possible CWL processes
24
*/
25
public enum CWLProcess {
26
- WORKFLOW,
27
- COMMANDLINETOOL,
28
- EXPRESSIONTOOL;
+ WORKFLOW("Workflow"),
+ COMMANDLINETOOL("CommandLineTool"),
+ EXPRESSIONTOOL("ExpressionTool");
29
+
30
+ private final String name;
31
32
+ CWLProcess(String name) {
33
+ this.name = name;
34
+ }
35
36
@Override
37
public String toString() {
- switch (this) {
- case WORKFLOW:
- return "Workflow";
- case COMMANDLINETOOL:
- return "CommandLineTool";
- case EXPRESSIONTOOL:
38
- default:
39
- return "ExpressionTool";
40
- }
+ return name;
41
}
42
0 commit comments