com.tngtech.jgiven.format
Class TableFormatter

java.lang.Object
  extended by com.tngtech.jgiven.format.TableFormatter
All Implemented Interfaces:
ArgumentFormatter<java.lang.Object>

public class TableFormatter
extends java.lang.Object
implements ArgumentFormatter<java.lang.Object>

Special formatter that will format arguments as a table. This formatter is used when a parameter is annotated with the Table annotation.

See Also:
Table

Field Summary
 Table tableAnnotation
           
 
Constructor Summary
TableFormatter(Table tableAnnotation)
           
 
Method Summary
 java.lang.String format(java.lang.Object o, java.lang.String... args)
          Format a single argument by taking optional formatter arguments into account.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableAnnotation

public final Table tableAnnotation
Constructor Detail

TableFormatter

public TableFormatter(Table tableAnnotation)
Method Detail

format

public java.lang.String format(java.lang.Object o,
                               java.lang.String... args)
Description copied from interface: ArgumentFormatter
Format a single argument by taking optional formatter arguments into account.

Specified by:
format in interface ArgumentFormatter<java.lang.Object>
Parameters:
o - the object to format
args - optional arguments for the formatter to control the formatting.
Returns:
a formatted string