org.kuali.student.contract.writer.search
Class SearchModelWriter

java.lang.Object
  extended by org.kuali.student.contract.writer.search.SearchModelWriter

public class SearchModelWriter
extends Object

This writes out the entire search xml file

Author:
nwright

Field Summary
private  SearchModel model
           
private  XmlWriter writer
           
 
Constructor Summary
SearchModelWriter(PrintStream out, SearchModel model)
           
 
Method Summary
private  void decrementIndent()
           
private  List<SearchImplementation> getImplementations()
           
private  List<SearchImplementation> getJPQLImplementations()
           
private  List<SearchCriteria> getSearchCriteria()
           
private  List<SearchCriteriaParameter> getSearchCriteriaParameters()
           
private  List<SearchResultColumn> getSearchResultColumns()
           
private  List<SearchResult> getSearchResults()
           
private  void incrementIndent()
           
private  void indentPrint(String str)
           
private  void indentPrintln(String str)
           
private  void println(String str)
           
 void write()
          Write out the entire file
private  void writeAttribute(String attribute, String value)
           
private  void writeComment(String str)
           
protected  void writeFooter()
           
protected  void writeHeader()
          write out the header
protected  void writeSearchCriteria()
          write out the the object structure
protected  void writeSearchCriteriaParameters()
          write out the the object structure
protected  void writeSearchResultColumns()
          write out the the object structure
protected  void writeSearchResultTypes()
          write out the the object structure
protected  void writeSearchTypes()
          write out the the base fields
protected  void writeSqlQueryMap()
          write out the the object structure
private  void writeTag(String tag, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

private SearchModel model

writer

private XmlWriter writer
Constructor Detail

SearchModelWriter

public SearchModelWriter(PrintStream out,
                         SearchModel model)
Method Detail

write

public void write()
Write out the entire file

Parameters:
out -

indentPrint

private void indentPrint(String str)

indentPrintln

private void indentPrintln(String str)

println

private void println(String str)

writeComment

private void writeComment(String str)

incrementIndent

private void incrementIndent()

decrementIndent

private void decrementIndent()

writeTag

private void writeTag(String tag,
                      String value)

writeAttribute

private void writeAttribute(String attribute,
                            String value)

writeHeader

protected void writeHeader()
write out the header

Parameters:
out -

writeFooter

protected void writeFooter()

writeSearchTypes

protected void writeSearchTypes()
write out the the base fields

Parameters:
out -

writeSearchResultTypes

protected void writeSearchResultTypes()
write out the the object structure

Parameters:
out -

getSearchResults

private List<SearchResult> getSearchResults()

writeSearchResultColumns

protected void writeSearchResultColumns()
write out the the object structure

Parameters:
out -

getSearchResultColumns

private List<SearchResultColumn> getSearchResultColumns()

writeSearchCriteria

protected void writeSearchCriteria()
write out the the object structure

Parameters:
out -

getSearchCriteria

private List<SearchCriteria> getSearchCriteria()

writeSearchCriteriaParameters

protected void writeSearchCriteriaParameters()
write out the the object structure

Parameters:
out -

getSearchCriteriaParameters

private List<SearchCriteriaParameter> getSearchCriteriaParameters()

writeSqlQueryMap

protected void writeSqlQueryMap()
write out the the object structure

Parameters:
out -

getImplementations

private List<SearchImplementation> getImplementations()

getJPQLImplementations

private List<SearchImplementation> getJPQLImplementations()


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.