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