1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
package org.kuali.student.r2.common.dto; |
14 |
|
|
15 |
|
import java.io.Serializable; |
16 |
|
|
17 |
|
import javax.xml.bind.annotation.XmlAttribute; |
18 |
|
import javax.xml.bind.annotation.XmlElement; |
19 |
|
import javax.xml.bind.annotation.XmlTransient; |
20 |
|
|
21 |
|
import org.kuali.student.common.infc.Entity; |
22 |
|
|
23 |
|
@SuppressWarnings("serial") |
24 |
|
@XmlTransient |
|
|
| 70% |
Uncovered Elements: 6 (20) |
Complexity: 6 |
Complexity Density: 0.43 |
|
25 |
|
public abstract class EntityInfo extends HasAttributesAndMetaInfo implements Entity, Serializable { |
26 |
|
|
27 |
|
@XmlElement |
28 |
|
private String name; |
29 |
|
|
30 |
|
@XmlElement |
31 |
|
private RichTextInfo descr; |
32 |
|
|
33 |
|
@XmlAttribute |
34 |
|
private String typeKey; |
35 |
|
|
36 |
|
@XmlAttribute |
37 |
|
private String stateKey; |
38 |
|
|
39 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
40 |
0
|
protected EntityInfo() {... |
41 |
0
|
super (); |
42 |
0
|
name = null; |
43 |
0
|
descr = null; |
44 |
0
|
typeKey = null; |
45 |
0
|
stateKey = null; |
46 |
|
} |
47 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
48 |
4
|
protected EntityInfo(Entity builder) {... |
49 |
4
|
super(builder); |
50 |
4
|
this.name = builder.getName(); |
51 |
4
|
this.descr = builder.getDescr(); |
52 |
4
|
this.typeKey = builder.getTypeKey(); |
53 |
4
|
this.stateKey = builder.getStateKey(); |
54 |
|
} |
55 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
8
|
@Override... |
57 |
|
public String getName() { |
58 |
8
|
return name; |
59 |
|
} |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
4
|
@Override... |
62 |
|
public RichTextInfo getDescr() { |
63 |
4
|
return descr; |
64 |
|
} |
65 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
66 |
6
|
@Override... |
67 |
|
public String getTypeKey() { |
68 |
6
|
return typeKey; |
69 |
|
} |
70 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
8
|
@Override... |
72 |
|
public String getStateKey() { |
73 |
8
|
return stateKey; |
74 |
|
} |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
|
|
| 65.2% |
Uncovered Elements: 8 (23) |
Complexity: 10 |
Complexity Density: 0.77 |
|
80 |
|
public static class Builder extends HasAttributesAndMetaInfo.Builder implements Entity { |
81 |
|
|
82 |
|
private String name; |
83 |
|
private RichTextInfo descr; |
84 |
|
private String typeKey; |
85 |
|
private String stateKey; |
86 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
87 |
1
|
public Builder() {}... |
88 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
89 |
0
|
public Builder(Entity entity) {... |
90 |
0
|
super(entity); |
91 |
0
|
this.name = entity.getName(); |
92 |
0
|
this.descr = entity.getDescr(); |
93 |
0
|
this.typeKey = entity.getTypeKey(); |
94 |
0
|
this.stateKey = entity.getStateKey(); |
95 |
|
} |
96 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
4
|
@Override... |
98 |
|
public String getName() { |
99 |
4
|
return name; |
100 |
|
} |
101 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
102 |
1
|
public void setName(String name) {... |
103 |
1
|
this.name = name; |
104 |
|
} |
105 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
106 |
4
|
@Override... |
107 |
|
public RichTextInfo getDescr() { |
108 |
4
|
return descr; |
109 |
|
} |
110 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
0
|
public void setDescr(RichTextInfo descr) {... |
112 |
0
|
this.descr = descr; |
113 |
|
} |
114 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
4
|
@Override... |
116 |
|
public String getTypeKey() { |
117 |
4
|
return typeKey; |
118 |
|
} |
119 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
4
|
public void setTypeKey(String typeKey) {... |
121 |
4
|
this.typeKey = typeKey; |
122 |
|
} |
123 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
124 |
4
|
@Override... |
125 |
|
public String getStateKey() { |
126 |
4
|
return stateKey; |
127 |
|
} |
128 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
129 |
1
|
public void setStateKey(String stateKey) {... |
130 |
1
|
this.stateKey = stateKey; |
131 |
|
} |
132 |
|
} |
133 |
|
} |