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 | |
import org.w3c.dom.Element; |
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 | 0 | @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<Element> _futureElements; |
63 | |
|
64 | 0 | public LoDisplayInfo() { |
65 | |
|
66 | 0 | } |
67 | |
|
68 | |
public LoDisplayInfo(LoDisplay loDisplay) { |
69 | 0 | super(loDisplay); |
70 | 0 | if (loDisplay != null) { |
71 | 0 | this.loInfo = new LoInfo(loDisplay.getLoInfo()); |
72 | 0 | List<LoDisplayInfo> loDisplayInfoList = new ArrayList<LoDisplayInfo>(); |
73 | 0 | for (LoDisplay containedLoDisplay : loDisplay.getLoDisplayInfoList()) { |
74 | 0 | loDisplayInfoList.add(new LoDisplayInfo(containedLoDisplay)); |
75 | |
} |
76 | |
} |
77 | |
|
78 | 0 | } |
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
@Override |
84 | |
public LoInfo getLoInfo() { |
85 | 0 | return loInfo; |
86 | |
} |
87 | |
|
88 | |
public void setLoInfo(LoInfo loInfo) { |
89 | 0 | this.loInfo = loInfo; |
90 | 0 | } |
91 | |
|
92 | |
|
93 | |
|
94 | |
|
95 | |
@Override |
96 | |
public List<LoDisplayInfo> getLoDisplayInfoList() { |
97 | 0 | if (loDisplayInfoList == null) { |
98 | 0 | loDisplayInfoList = new ArrayList<LoDisplayInfo>(0); |
99 | |
} |
100 | 0 | return loDisplayInfoList; |
101 | |
} |
102 | |
|
103 | |
public void setLoDisplayInfoList(List<LoDisplayInfo> loDisplayInfoList) { |
104 | 0 | this.loDisplayInfoList = loDisplayInfoList; |
105 | 0 | } |
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
@Override |
111 | |
public String getParentRelType() { |
112 | 0 | return parentRelType; |
113 | |
} |
114 | |
|
115 | |
public void setParentRelType(String parentRelType) { |
116 | 0 | this.parentRelType = parentRelType; |
117 | 0 | } |
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
@Override |
123 | |
public String getParentLoRelationid() { |
124 | 0 | return parentLoRelationid; |
125 | |
} |
126 | |
|
127 | |
public void setParentLoRelationid(String parentLoRelationid) { |
128 | 0 | this.parentLoRelationid = parentLoRelationid; |
129 | 0 | } |
130 | |
|
131 | |
|
132 | |
|
133 | |
|
134 | |
@Override |
135 | |
public List<LoCategoryInfo> getLoCategoryInfoList() { |
136 | 0 | if (loCategoryInfoList == null) { |
137 | 0 | loCategoryInfoList = new ArrayList<LoCategoryInfo>(0); |
138 | |
} |
139 | 0 | return loCategoryInfoList; |
140 | |
} |
141 | |
|
142 | |
public void setLoCategoryInfoList(List<LoCategoryInfo> loCategoryInfoList) { |
143 | 0 | this.loCategoryInfoList = loCategoryInfoList; |
144 | 0 | } |
145 | |
} |