org.kuali.student.contract.model.util
Class HtmlContractWriter

java.lang.Object
  extended by org.kuali.student.contract.model.util.HtmlContractWriter

public class HtmlContractWriter
extends Object

Author:
nwright

Field Summary
private  String directory
           
private  ModelFinder finder
           
private  ServiceContractModel model
           
private static Comparator<Service> SERVICE_IMPL_NAME_COMPARATOR
           
private static Comparator<Service> SERVICE_NAME_COMPARATOR
           
private  HtmlWriter writer
           
private static Comparator<XmlType> XML_TYPE_NAME_COMPARATOR
           
 
Constructor Summary
HtmlContractWriter(String directory, ServiceContractModel model)
           
 
Method Summary
private static String calcArea(Service service)
           
private static String calcArea(String implProject)
           
private  String calcParents(Stack<String> stack)
           
private  List<XmlType> getComplexMessageStructures()
           
private  List<XmlType> getMainMessageStructures()
           
private  boolean isMainMessageStructure(XmlType xmlType)
           
private  String stripListOffEnd(String name)
           
 void write()
           
private  void writeAlphabeticalList()
           
private  void writeIndexPage()
           
private  void writeLink(XmlType type)
           
private  void writeMainOrRootList()
           
private  void writeSubStructures(XmlType type, Stack<String> stack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

private HtmlWriter writer

model

private ServiceContractModel model

finder

private ModelFinder finder

directory

private String directory

XML_TYPE_NAME_COMPARATOR

private static final Comparator<XmlType> XML_TYPE_NAME_COMPARATOR

SERVICE_NAME_COMPARATOR

private static final Comparator<Service> SERVICE_NAME_COMPARATOR

SERVICE_IMPL_NAME_COMPARATOR

private static final Comparator<Service> SERVICE_IMPL_NAME_COMPARATOR
Constructor Detail

HtmlContractWriter

public HtmlContractWriter(String directory,
                          ServiceContractModel model)
Method Detail

write

public void write()

writeIndexPage

private void writeIndexPage()

calcArea

private static String calcArea(Service service)

calcArea

private static String calcArea(String implProject)

writeMainOrRootList

private void writeMainOrRootList()

stripListOffEnd

private String stripListOffEnd(String name)

writeSubStructures

private void writeSubStructures(XmlType type,
                                Stack<String> stack)

calcParents

private String calcParents(Stack<String> stack)

writeLink

private void writeLink(XmlType type)

getMainMessageStructures

private List<XmlType> getMainMessageStructures()

isMainMessageStructure

private boolean isMainMessageStructure(XmlType xmlType)

getComplexMessageStructures

private List<XmlType> getComplexMessageStructures()

writeAlphabeticalList

private void writeAlphabeticalList()


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