1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.contract.writer.search; |
17 |
|
|
18 |
|
import org.kuali.student.contract.model.SearchResultColumn; |
19 |
|
import org.kuali.student.contract.writer.XmlWriter; |
20 |
|
|
21 |
|
import java.io.PrintStream; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
@author |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 2 |
Complexity Density: 0.15 |
|
27 |
|
public class SearchResultColumnWriter extends XmlWriter { |
28 |
|
|
29 |
|
private SearchResultColumn column; |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
31 |
0
|
public SearchResultColumnWriter(PrintStream out, int indent,... |
32 |
|
SearchResultColumn column) { |
33 |
0
|
super(out, indent); |
34 |
0
|
this.column = column; |
35 |
|
} |
36 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 1 |
Complexity Density: 0.09 |
|
37 |
0
|
public void write() {... |
38 |
0
|
println(""); |
39 |
0
|
indentPrint("<search:resultColumn"); |
40 |
|
|
41 |
0
|
incrementIndent(); |
42 |
0
|
writeAttribute("id", column.getKey()); |
43 |
0
|
println(">"); |
44 |
|
|
45 |
|
|
46 |
0
|
writeComment(column.getComments()); |
47 |
|
|
48 |
0
|
writeTag("search:name", column.getName()); |
49 |
0
|
writeTag("search:desc", column.getDescription()); |
50 |
0
|
writeTag("search:dataType", column.getDataType()); |
51 |
|
|
52 |
0
|
indentPrintln("</search:resultColumn>"); |
53 |
0
|
decrementIndent(); |
54 |
|
} |
55 |
|
} |