1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.opencastproject.workflow.api;
23
24 import java.util.ArrayList;
25 import java.util.Collection;
26 import java.util.List;
27
28 import javax.xml.bind.annotation.XmlAccessType;
29 import javax.xml.bind.annotation.XmlAccessorType;
30 import javax.xml.bind.annotation.XmlElement;
31 import javax.xml.bind.annotation.XmlRootElement;
32
33
34
35
36 @XmlAccessorType(XmlAccessType.NONE)
37 @XmlRootElement(name = "definitions", namespace = "http://workflow.opencastproject.org")
38 public class WorkflowDefinitionSet {
39
40 @XmlElement(name = "definition")
41 protected List<WorkflowDefinition> definitions = null;
42
43 public WorkflowDefinitionSet(Collection<WorkflowDefinition> definitions) {
44 this.definitions = new ArrayList<WorkflowDefinition>();
45 if (definitions != null)
46 this.definitions.addAll(definitions);
47 }
48
49 public WorkflowDefinitionSet() {
50 this(null);
51 }
52
53 public List<WorkflowDefinition> getDefinitions() {
54 return definitions;
55 }
56
57 public void setDefinitions(List<WorkflowDefinition> definitions) {
58 this.definitions = definitions;
59 }
60
61 }