com.codemonster.surinam.core.formatter
Class ContractBlueprintHTMLFormatter

java.lang.Object
  extended by com.codemonster.surinam.core.formatter.AbstractContractBlueprintFormatter
      extended by com.codemonster.surinam.core.formatter.ContractBlueprintHTMLFormatter
All Implemented Interfaces:
BlueprintFormatter

public class ContractBlueprintHTMLFormatter
extends AbstractContractBlueprintFormatter

This is the default Surinam implementation for handling Service Contract Blueprint formatting in HTML. This formatter renders the blueprints in a set of tables.


Constructor Summary
ContractBlueprintHTMLFormatter()
           
 
Method Summary
 StringBuilder formatAll(Map<String,ContractBlueprint> map)
          This is the callback to format all contract blueprints with a type-safe signature.
 void formatBlueprint(Blueprint blueprint, StringBuilder stringBuilder)
           
 void formatFooter(StringBuilder stringBuilder)
           
 void formatHeader(StringBuilder stringBuilder)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContractBlueprintHTMLFormatter

public ContractBlueprintHTMLFormatter()
Method Detail

formatHeader

public void formatHeader(StringBuilder stringBuilder)

formatFooter

public void formatFooter(StringBuilder stringBuilder)

formatBlueprint

public void formatBlueprint(Blueprint blueprint,
                            StringBuilder stringBuilder)

formatAll

public StringBuilder formatAll(Map<String,ContractBlueprint> map)
Description copied from class: AbstractContractBlueprintFormatter
This is the callback to format all contract blueprints with a type-safe signature.

Specified by:
formatAll in class AbstractContractBlueprintFormatter
Parameters:
map - The map of blueprints to format.
Returns:
Returns a StringBuilder object with the formatted output.


Copyright © 2010. All Rights Reserved.