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