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