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.SearchCriteriaParameter; |
19 |
|
import org.kuali.student.contract.writer.XmlWriter; |
20 |
|
|
21 |
|
import java.io.PrintStream; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
@author |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 19 (19) |
Complexity: 2 |
Complexity Density: 0.12 |
|
27 |
|
public class SearchCriteriaParameterWriter extends XmlWriter { |
28 |
|
|
29 |
|
private SearchCriteriaParameter parm; |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
31 |
0
|
public SearchCriteriaParameterWriter(PrintStream out, int indent,... |
32 |
|
SearchCriteriaParameter parm) { |
33 |
0
|
super(out, indent); |
34 |
0
|
this.parm = parm; |
35 |
|
} |
36 |
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 1 |
Complexity Density: 0.07 |
|
37 |
0
|
public void write() {... |
38 |
0
|
println(""); |
39 |
0
|
indentPrint("<search:queryParam"); |
40 |
|
|
41 |
0
|
incrementIndent(); |
42 |
0
|
writeAttribute("id", parm.getKey()); |
43 |
0
|
println(">"); |
44 |
0
|
incrementIndent(); |
45 |
|
|
46 |
|
|
47 |
0
|
writeComment(parm.getComments()); |
48 |
0
|
indentPrintln("<dict:fieldDescriptor>"); |
49 |
|
|
50 |
0
|
writeTag("dict:name", parm.getName()); |
51 |
0
|
writeTag("dict:desc", parm.getDescription()); |
52 |
0
|
writeTag("dict:dataType", parm.getDataType()); |
53 |
0
|
indentPrintln("</dict:fieldDescriptor>"); |
54 |
0
|
decrementIndent(); |
55 |
0
|
indentPrintln("</search:queryParam>"); |
56 |
0
|
decrementIndent(); |
57 |
|
} |
58 |
|
} |