com.codemonster.surinam.core.formatter
Class AbstractContractBlueprintFormatter

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

public abstract class AbstractContractBlueprintFormatter
extends Object
implements BlueprintFormatter

This is an abstract class that helps with the creation of specific subclass families of Contract formatters. This will help make implementing specific formatters a bit easier by providing a core implementation for handling a blueprint map, handing off formatting calls for each of the blueprints with the implementation provided by the implementing class. Also, to give individual formatters the ability to control the header and footer sections of a format, we separate those parts into discrete methods.


Constructor Summary
AbstractContractBlueprintFormatter()
           
 
Method Summary
abstract  StringBuilder formatAll(Map<String,ContractBlueprint> map)
          This is the callback to format all contract blueprints with a type-safe signature.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.codemonster.surinam.core.formatter.BlueprintFormatter
formatBlueprint, formatFooter, formatHeader
 

Constructor Detail

AbstractContractBlueprintFormatter

public AbstractContractBlueprintFormatter()
Method Detail

formatAll

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

Parameters:
map - The map of blueprints to format.
Returns:
Returns a StringBuilder object with the formatted output.


Copyright © 2010. All Rights Reserved.