1
2
3
4
5
6
7
8
9
10
11 package org.kuali.student.r2.lum.course.dto;
12
13 import org.kuali.student.r2.common.dto.IdEntityInfo;
14 import org.kuali.student.r2.lum.course.infc.LoDisplay;
15 import org.kuali.student.r2.lum.lo.dto.LoCategoryInfo;
16 import org.kuali.student.r2.lum.lo.dto.LoInfo;
17
18
19 import javax.xml.bind.annotation.XmlAccessType;
20 import javax.xml.bind.annotation.XmlAccessorType;
21 import javax.xml.bind.annotation.XmlAnyElement;
22 import javax.xml.bind.annotation.XmlElement;
23 import javax.xml.bind.annotation.XmlType;
24
25 import java.io.Serializable;
26 import java.util.ArrayList;
27 import java.util.List;
28
29
30
31
32
33
34
35
36
37
38
39 @XmlType(name = "LoDisplayInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "loInfo", "loDisplayInfoList", "parentRelType", "parentLoRelationid", "loCategoryInfoList", "meta",
40 "attributes", "_futureElements" })
41 @XmlAccessorType(XmlAccessType.FIELD)
42 public class LoDisplayInfo extends IdEntityInfo implements LoDisplay, Serializable {
43
44 private static final long serialVersionUID = 1L;
45
46 @XmlElement
47 private LoInfo loInfo;
48
49 @XmlElement
50 private List<LoDisplayInfo> loDisplayInfoList;
51
52 @XmlElement
53 private String parentRelType;
54
55 @XmlElement
56 private String parentLoRelationid;
57
58 @XmlElement
59 private List<LoCategoryInfo> loCategoryInfoList;
60
61 @XmlAnyElement
62 private List<Object> _futureElements;
63
64 public LoDisplayInfo() {
65
66 }
67
68 public LoDisplayInfo(LoDisplay loDisplay) {
69 super(loDisplay);
70 if (loDisplay != null) {
71 this.loInfo = new LoInfo(loDisplay.getLoInfo());
72 List<LoDisplayInfo> loDisplayInfoList = new ArrayList<LoDisplayInfo>();
73 for (LoDisplay containedLoDisplay : loDisplay.getLoDisplayInfoList()) {
74 loDisplayInfoList.add(new LoDisplayInfo(containedLoDisplay));
75 }
76 }
77
78 }
79
80
81
82
83 @Override
84 public LoInfo getLoInfo() {
85 return loInfo;
86 }
87
88 public void setLoInfo(LoInfo loInfo) {
89 this.loInfo = loInfo;
90 }
91
92
93
94
95 @Override
96 public List<LoDisplayInfo> getLoDisplayInfoList() {
97 if (loDisplayInfoList == null) {
98 loDisplayInfoList = new ArrayList<LoDisplayInfo>(0);
99 }
100 return loDisplayInfoList;
101 }
102
103 public void setLoDisplayInfoList(List<LoDisplayInfo> loDisplayInfoList) {
104 this.loDisplayInfoList = loDisplayInfoList;
105 }
106
107
108
109
110 @Override
111 public String getParentRelType() {
112 return parentRelType;
113 }
114
115 public void setParentRelType(String parentRelType) {
116 this.parentRelType = parentRelType;
117 }
118
119
120
121
122 @Override
123 public String getParentLoRelationid() {
124 return parentLoRelationid;
125 }
126
127 public void setParentLoRelationid(String parentLoRelationid) {
128 this.parentLoRelationid = parentLoRelationid;
129 }
130
131
132
133
134 @Override
135 public List<LoCategoryInfo> getLoCategoryInfoList() {
136 if (loCategoryInfoList == null) {
137 loCategoryInfoList = new ArrayList<LoCategoryInfo>(0);
138 }
139 return loCategoryInfoList;
140 }
141
142 public void setLoCategoryInfoList(List<LoCategoryInfo> loCategoryInfoList) {
143 this.loCategoryInfoList = loCategoryInfoList;
144 }
145 }