1
2 package org.kuali.ole.docstore.common.document.content.instance;
3
4 import com.thoughtworks.xstream.annotations.XStreamAlias;
5 import com.thoughtworks.xstream.annotations.XStreamImplicit;
6
7 import javax.xml.bind.annotation.*;
8 import java.util.ArrayList;
9 import java.util.List;
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 @XmlAccessorType(XmlAccessType.FIELD)
36 @XmlType(name = "instanceCollection", namespace = "http://ole.kuali.org/standards/ole-instance", propOrder = {
37 "instance"
38 })
39 @XStreamAlias("instanceCollection")
40 @XmlRootElement(name = "instanceCollection", namespace = "http://ole.kuali.org/standards/ole-instance")
41 public class InstanceCollection {
42
43 @XmlElement(name = "instance", namespace = "http://ole.kuali.org/standards/ole-instance", required = true)
44 @XStreamImplicit(itemFieldName = "instance")
45 protected List<Instance> instance;
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67 public List<Instance> getInstance() {
68 if (instance == null) {
69 instance = new ArrayList<Instance>();
70 }
71 return this.instance;
72 }
73
74 public void setInstance(List<Instance> instance) {
75 this.instance = instance;
76 }
77 }