@@ -79,17 +79,29 @@ public class Workflow {
79
79
80
80
private final String permaLinkBase = "https://w3id.org/cwl/view" ;
81
81
82
+ private String licenseLink ;
83
+
82
84
public Workflow (String label , String doc , Map <String , CWLElement > inputs ,
83
- Map <String , CWLElement > outputs , Map <String , CWLStep > steps , String dockerLink ) {
85
+ Map <String , CWLElement > outputs , Map <String , CWLStep > steps , String dockerLink , String licenseLink ) {
84
86
this .label = label ;
85
87
this .doc = doc ;
86
88
this .inputs = inputs ;
87
89
this .outputs = outputs ;
88
90
this .steps = steps ;
89
91
this .dockerLink = dockerLink ;
92
+ this .licenseLink = licenseLink ;
90
93
}
91
94
92
- public String getID () { return id ; }
95
+ public Workflow (String label , String doc , Map <String , CWLElement > inputs ,
96
+ Map <String , CWLElement > outputs , Map <String , CWLStep > steps ) {
97
+ this (label , doc , inputs , outputs , steps , null , null );
98
+ }
99
+
100
+ public Workflow () {
101
+ this (null , null , null , null ,null , null , null );
102
+ }
103
+
104
+ public String getID () { return id ; }
93
105
94
106
public void setId (String id ) {
95
107
this .id = id ;
@@ -270,4 +282,12 @@ public boolean isPacked() {
270
282
return retrievedFrom .getPackedId () != null ;
271
283
}
272
284
285
+ public String getLicenseLink () {
286
+ return licenseLink ;
287
+ }
288
+
289
+ public void setLicenseLink (String licenseLink ) {
290
+ this .licenseLink = licenseLink ;
291
+ }
292
+
273
293
}
0 commit comments