1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.lum.lu.dto; |
17 |
|
|
18 |
|
import java.io.Serializable; |
19 |
|
import java.util.ArrayList; |
20 |
|
import java.util.Date; |
21 |
|
import java.util.HashMap; |
22 |
|
import java.util.List; |
23 |
|
import java.util.Map; |
24 |
|
|
25 |
|
import javax.xml.bind.annotation.XmlAccessType; |
26 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
27 |
|
import javax.xml.bind.annotation.XmlAttribute; |
28 |
|
import javax.xml.bind.annotation.XmlElement; |
29 |
|
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
30 |
|
|
31 |
|
import org.kuali.student.common.dto.HasAttributes; |
32 |
|
import org.kuali.student.common.dto.HasTypeState; |
33 |
|
import org.kuali.student.common.dto.Idable; |
34 |
|
import org.kuali.student.common.dto.MetaInfo; |
35 |
|
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
| 96.3% |
Uncovered Elements: 2 (54) |
Complexity: 25 |
Complexity Density: 0.93 |
|
47 |
|
public class CluPublicationInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
48 |
|
|
49 |
|
private static final long serialVersionUID = 1L; |
50 |
|
|
51 |
|
@XmlElement |
52 |
|
private String cluId; |
53 |
|
|
54 |
|
@XmlElement |
55 |
|
private List<FieldInfo> variants; |
56 |
|
|
57 |
|
@XmlElement |
58 |
|
private String startCycle; |
59 |
|
|
60 |
|
@XmlElement |
61 |
|
private String endCycle; |
62 |
|
|
63 |
|
@XmlElement |
64 |
|
private Date effectiveDate; |
65 |
|
|
66 |
|
@XmlElement |
67 |
|
private Date expirationDate; |
68 |
|
|
69 |
|
@XmlElement |
70 |
|
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
71 |
|
private Map<String, String> attributes; |
72 |
|
|
73 |
|
@XmlElement |
74 |
|
private MetaInfo metaInfo; |
75 |
|
|
76 |
|
@XmlAttribute |
77 |
|
private String type; |
78 |
|
|
79 |
|
@XmlAttribute |
80 |
|
private String state; |
81 |
|
|
82 |
|
@XmlAttribute |
83 |
|
private String id; |
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
87
|
public String getCluId() {... |
89 |
87
|
return cluId; |
90 |
|
} |
91 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
306
|
public void setCluId(String cluId) {... |
93 |
306
|
this.cluId = cluId; |
94 |
|
} |
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
99 |
221
|
public List<FieldInfo> getVariants() {... |
100 |
221
|
if (variants == null) { |
101 |
58
|
variants = new ArrayList<FieldInfo>(0); |
102 |
|
} |
103 |
221
|
return variants; |
104 |
|
} |
105 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
106 |
247
|
public void setVariants(List<FieldInfo> variants) {... |
107 |
247
|
this.variants = variants; |
108 |
|
} |
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
113 |
87
|
public String getStartCycle() {... |
114 |
87
|
return startCycle; |
115 |
|
} |
116 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
117 |
251
|
public void setStartCycle(String startCycle) {... |
118 |
251
|
this.startCycle = startCycle; |
119 |
|
} |
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
124 |
87
|
public String getEndCycle() {... |
125 |
87
|
return endCycle; |
126 |
|
} |
127 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
251
|
public void setEndCycle(String endCycle) {... |
129 |
251
|
this.endCycle = endCycle; |
130 |
|
} |
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
87
|
public Date getEffectiveDate() {... |
136 |
87
|
return effectiveDate; |
137 |
|
} |
138 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
139 |
251
|
public void setEffectiveDate(Date effectiveDate) {... |
140 |
251
|
this.effectiveDate = effectiveDate; |
141 |
|
} |
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
146 |
87
|
public Date getExpirationDate() {... |
147 |
87
|
return expirationDate; |
148 |
|
} |
149 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
150 |
251
|
public void setExpirationDate(Date expirationDate) {... |
151 |
251
|
this.expirationDate = expirationDate; |
152 |
|
} |
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
157 |
83
|
public Map<String, String> getAttributes() {... |
158 |
83
|
if (attributes == null) { |
159 |
58
|
attributes = new HashMap<String, String>(); |
160 |
|
} |
161 |
83
|
return attributes; |
162 |
|
} |
163 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
164 |
247
|
public void setAttributes(Map<String, String> attributes) {... |
165 |
247
|
this.attributes = attributes; |
166 |
|
} |
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
171 |
26
|
public MetaInfo getMetaInfo() {... |
172 |
26
|
return metaInfo; |
173 |
|
} |
174 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
175 |
247
|
public void setMetaInfo(MetaInfo metaInfo) {... |
176 |
247
|
this.metaInfo = metaInfo; |
177 |
|
} |
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
182 |
283
|
public String getType() {... |
183 |
283
|
return type; |
184 |
|
} |
185 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
186 |
306
|
public void setType(String type) {... |
187 |
306
|
this.type = type; |
188 |
|
} |
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
193 |
87
|
public String getState() {... |
194 |
87
|
return state; |
195 |
|
} |
196 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
197 |
306
|
public void setState(String state) {... |
198 |
306
|
this.state = state; |
199 |
|
} |
200 |
|
|
201 |
|
|
202 |
|
|
203 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
204 |
90
|
public String getId() {... |
205 |
90
|
return id; |
206 |
|
} |
207 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
208 |
247
|
public void setId(String id) {... |
209 |
247
|
this.id = id; |
210 |
|
} |
211 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
212 |
0
|
@Override... |
213 |
|
public String toString() { |
214 |
0
|
return "CluPublicationInfo[id=" + id + ", cluId=" + cluId + ", type=" + type + "]"; |
215 |
|
} |
216 |
|
} |