1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package org.kuali.student.contract.model.test.source; |
9 |
|
|
10 |
|
import java.io.Serializable; |
11 |
|
import java.util.List; |
12 |
|
|
13 |
|
import javax.xml.bind.annotation.XmlAccessType; |
14 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
15 |
|
import javax.xml.bind.annotation.XmlAnyElement; |
16 |
|
import javax.xml.bind.annotation.XmlElement; |
17 |
|
import javax.xml.bind.annotation.XmlType; |
18 |
|
|
19 |
|
import org.kuali.student.contract.model.test.source.Attribute; |
20 |
|
import org.kuali.student.contract.model.test.source.ModelBuilder; |
21 |
|
import org.w3c.dom.Element; |
22 |
|
|
23 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
24 |
|
@XmlType(name = "AttributeInfo", propOrder = {"id", "key", "value", "_futureElements"}) |
|
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 5 |
Complexity Density: 0.45 |
|
25 |
|
public final class AttributeInfo implements Attribute, Serializable { |
26 |
|
|
27 |
|
private static final long serialVersionUID = 1L; |
28 |
|
|
29 |
|
@XmlElement |
30 |
|
private final String id; |
31 |
|
|
32 |
|
@XmlElement |
33 |
|
private final String key; |
34 |
|
|
35 |
|
@XmlElement |
36 |
|
private final String value; |
37 |
|
|
38 |
|
@XmlAnyElement |
39 |
|
private final List<Element> _futureElements; |
40 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
41 |
0
|
private AttributeInfo() {... |
42 |
0
|
this.id = null; |
43 |
0
|
this.key = null; |
44 |
0
|
this.value = null; |
45 |
0
|
this._futureElements = null; |
46 |
|
} |
47 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
48 |
0
|
private AttributeInfo(Attribute builder) {... |
49 |
0
|
this.id = builder.getId(); |
50 |
0
|
this.key = builder.getKey(); |
51 |
0
|
this.value = builder.getValue(); |
52 |
0
|
this._futureElements = null; |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0
|
@Override... |
56 |
|
public String getId() { |
57 |
0
|
return id; |
58 |
|
} |
59 |
|
|
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
@Override... |
62 |
|
public String getKey() { |
63 |
0
|
return key; |
64 |
|
} |
65 |
|
|
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0
|
@Override... |
68 |
|
public String getValue() { |
69 |
0
|
return value; |
70 |
|
} |
71 |
|
|
72 |
|
|
|
|
| 0% |
Uncovered Elements: 19 (19) |
Complexity: 9 |
Complexity Density: 0.9 |
|
73 |
|
public static class Builder implements ModelBuilder<AttributeInfo>, Attribute { |
74 |
|
|
75 |
|
private String id; |
76 |
|
private String value; |
77 |
|
private String key; |
78 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
79 |
0
|
public Builder() {... |
80 |
|
} |
81 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
82 |
0
|
public Builder(Attribute attInfo) {... |
83 |
0
|
this.id = attInfo.getId(); |
84 |
0
|
this.key = attInfo.getKey(); |
85 |
0
|
this.value = attInfo.getValue(); |
86 |
|
} |
87 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
0
|
public AttributeInfo build() {... |
89 |
0
|
return new AttributeInfo(this); |
90 |
|
} |
91 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
0
|
@Override... |
93 |
|
public String getId() { |
94 |
0
|
return id; |
95 |
|
} |
96 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
0
|
@Override... |
98 |
|
public String getKey() { |
99 |
0
|
return key; |
100 |
|
} |
101 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
102 |
0
|
@Override... |
103 |
|
public String getValue() { |
104 |
0
|
return value; |
105 |
|
} |
106 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
0
|
public void setId(String id) {... |
108 |
0
|
this.id = id; |
109 |
|
} |
110 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
0
|
public void setKey(String key) {... |
112 |
0
|
this.key = key; |
113 |
|
} |
114 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
0
|
public void setValue(String val) {... |
116 |
0
|
this.value = val; |
117 |
|
} |
118 |
|
} |
119 |
|
} |