1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.dto; |
17 |
|
|
18 |
|
import java.io.Serializable; |
19 |
|
import java.util.List; |
20 |
|
|
21 |
|
import javax.xml.bind.annotation.XmlAccessType; |
22 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
23 |
|
import javax.xml.bind.annotation.XmlAnyElement; |
24 |
|
import javax.xml.bind.annotation.XmlElement; |
25 |
|
import javax.xml.bind.annotation.XmlType; |
26 |
|
|
27 |
|
import org.kuali.student.common.infc.ModelBuilder; |
28 |
|
import org.kuali.student.common.infc.RichText; |
29 |
|
import org.w3c.dom.Element; |
30 |
|
|
31 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
32 |
|
@XmlType(name = "RichTextInfo", propOrder = {"plain", "formatted", "_futureElements"}) |
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 5 |
Complexity Density: 0.56 |
|
33 |
|
public class RichTextInfo implements RichText, Serializable { |
34 |
|
|
35 |
|
private static final long serialVersionUID = 1L; |
36 |
|
|
37 |
|
@XmlElement |
38 |
|
private final String plain; |
39 |
|
|
40 |
|
@XmlElement |
41 |
|
private final String formatted; |
42 |
|
|
43 |
|
@XmlAnyElement |
44 |
|
private final List<Element> _futureElements; |
45 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
46 |
0
|
private RichTextInfo() {... |
47 |
0
|
plain = null; |
48 |
0
|
formatted = null; |
49 |
0
|
_futureElements=null; |
50 |
|
} |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
52 |
0
|
private RichTextInfo(RichText builder) {... |
53 |
0
|
this.plain = builder.getPlain(); |
54 |
0
|
this.formatted = builder.getFormatted(); |
55 |
0
|
this._futureElements=null; |
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0
|
@Override... |
59 |
|
public String getPlain() { |
60 |
0
|
return plain; |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0
|
@Override... |
64 |
|
public String getFormatted() { |
65 |
0
|
return formatted; |
66 |
|
} |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0
|
@Override... |
69 |
|
public String toString() { |
70 |
0
|
return "RichTextInfo[plain=" + plain + ", formatted=" + formatted + "]"; |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 7 |
Complexity Density: 1 |
|
73 |
|
public static class Builder implements ModelBuilder<RichTextInfo>, RichText { |
74 |
|
private String plain; |
75 |
|
private String formatted; |
76 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
77 |
0
|
public Builder() {}... |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
79 |
0
|
public Builder(RichText rtInfo) {... |
80 |
0
|
this.plain = rtInfo.getPlain(); |
81 |
0
|
this.formatted = rtInfo.getFormatted(); |
82 |
|
} |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0
|
public RichTextInfo build() {... |
85 |
0
|
return new RichTextInfo(this); |
86 |
|
} |
87 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
0
|
public String getPlain() {... |
89 |
0
|
return plain; |
90 |
|
} |
91 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
0
|
public void setPlain(String plain) {... |
93 |
0
|
this.plain = plain; |
94 |
|
} |
95 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
0
|
public String getFormatted() {... |
97 |
0
|
return formatted; |
98 |
|
} |
99 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
0
|
public void setFormatted(String formatted) {... |
101 |
0
|
this.formatted = formatted; |
102 |
|
} |
103 |
|
} |
104 |
|
} |