1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package org.kuali.student.contract.model.test.source; |
9 |
|
|
10 |
|
import java.io.Serializable; |
11 |
|
|
12 |
|
import javax.xml.bind.annotation.XmlElement; |
13 |
|
import javax.xml.bind.annotation.XmlTransient; |
14 |
|
|
15 |
|
import org.kuali.student.contract.model.test.source.HasAttributesAndMeta; |
16 |
|
import org.kuali.student.contract.model.test.source.Meta; |
17 |
|
|
18 |
|
@SuppressWarnings("serial") |
19 |
|
@XmlTransient |
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 4 |
Complexity Density: 1 |
|
20 |
|
public abstract class HasAttributesAndMetaInfo extends HasAttributesInfo implements HasAttributesAndMeta, Serializable { |
21 |
|
|
22 |
|
@XmlElement |
23 |
|
private final MetaInfo meta; |
24 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
25 |
0
|
protected HasAttributesAndMetaInfo() {... |
26 |
0
|
meta = null; |
27 |
|
} |
28 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
29 |
0
|
protected HasAttributesAndMetaInfo(HasAttributesAndMeta builder) {... |
30 |
0
|
super(builder); |
31 |
0
|
this.meta= null != builder.getMeta() ? new MetaInfo.Builder(builder.getMeta()).build() : null; |
32 |
|
} |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
0
|
@Override... |
35 |
|
public MetaInfo getMeta() { |
36 |
0
|
return meta; |
37 |
|
} |
38 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 5 |
Complexity Density: 0.45 |
|
39 |
|
public static class Builder extends HasAttributesInfo.Builder implements HasAttributesAndMeta { |
40 |
|
|
41 |
|
private MetaInfo meta; |
42 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
43 |
0
|
public Builder() {}... |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 2 |
Complexity Density: 0.22 |
|
45 |
0
|
public Builder(HasAttributesAndMeta hasAMInfo) {... |
46 |
0
|
super(hasAMInfo); |
47 |
|
|
48 |
0
|
if (null != hasAMInfo.getMeta()) { |
49 |
0
|
MetaInfo.Builder builder = new MetaInfo.Builder(); |
50 |
0
|
builder.setCreateId(hasAMInfo.getMeta().getCreateId()); |
51 |
0
|
builder.setCreateTime(hasAMInfo.getMeta().getCreateTime()); |
52 |
0
|
builder.setUpdateId(hasAMInfo.getMeta().getUpdateId()); |
53 |
0
|
builder.setUpdateTime(hasAMInfo.getMeta().getUpdateTime()); |
54 |
0
|
builder.setVersionInd(hasAMInfo.getMeta().getVersionInd()); |
55 |
0
|
this.meta = builder.build(); |
56 |
|
} |
57 |
|
} |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0
|
@Override... |
60 |
|
public MetaInfo getMeta() { |
61 |
0
|
return meta; |
62 |
|
} |
63 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
0
|
public void setMetaInfo(MetaInfo meta) {... |
65 |
0
|
this.meta = meta; |
66 |
|
} |
67 |
|
} |
68 |
|
} |