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 | |
|
26 | |
|
27 | |
public class SearchResultColumnWriter extends XmlWriter |
28 | |
{ |
29 | |
|
30 | |
private SearchResultColumn column; |
31 | |
|
32 | |
public SearchResultColumnWriter (PrintStream out, int indent, |
33 | |
SearchResultColumn column) |
34 | |
{ |
35 | 0 | super (out, indent); |
36 | 0 | this.column = column; |
37 | 0 | } |
38 | |
|
39 | |
public void write () |
40 | |
{ |
41 | 0 | println (""); |
42 | 0 | indentPrint ("<search:resultColumn"); |
43 | |
|
44 | 0 | incrementIndent (); |
45 | 0 | writeAttribute ("id", column.getKey ()); |
46 | 0 | println (">"); |
47 | |
|
48 | |
|
49 | 0 | writeComment (column.getComments ()); |
50 | |
|
51 | 0 | writeTag ("search:name", column.getName ()); |
52 | 0 | writeTag ("search:desc", column.getDescription ()); |
53 | 0 | writeTag ("search:dataType", column.getDataType ()); |
54 | |
|
55 | 0 | indentPrintln ("</search:resultColumn>"); |
56 | 0 | decrementIndent (); |
57 | 0 | } |
58 | |
|
59 | |
} |