Skip to content

Commit f6cbd89

Browse files
committed
added licenseLink
.. and some constructors
1 parent 3b74415 commit f6cbd89

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/main/java/org/commonwl/view/workflow/Workflow.java

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,29 @@ public class Workflow {
7979

8080
private final String permaLinkBase = "https://w3id.org/cwl/view";
8181

82+
private String licenseLink;
83+
8284
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) {
8486
this.label = label;
8587
this.doc = doc;
8688
this.inputs = inputs;
8789
this.outputs = outputs;
8890
this.steps = steps;
8991
this.dockerLink = dockerLink;
92+
this.licenseLink = licenseLink;
9093
}
9194

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; }
93105

94106
public void setId(String id) {
95107
this.id = id;
@@ -270,4 +282,12 @@ public boolean isPacked() {
270282
return retrievedFrom.getPackedId() != null;
271283
}
272284

285+
public String getLicenseLink() {
286+
return licenseLink;
287+
}
288+
289+
public void setLicenseLink(String licenseLink) {
290+
this.licenseLink = licenseLink;
291+
}
292+
273293
}

0 commit comments

Comments
 (0)