cucumber.table
Class TableConverter

java.lang.Object
  extended by cucumber.table.TableConverter

public class TableConverter
extends Object

This class converts a to various other types


Constructor Summary
TableConverter(LocalizedXStreams.LocalizedXStream xStream, String dateFormat)
           
 
Method Summary
<T> T
convert(Type type, DataTable dataTable)
           
<T> List<T>
toList(Type type, DataTable dataTable)
          Converts a DataTable to a List of objects.
 DataTable toTable(List<?> objects, String... columnNames)
          Converts a List of objects to a DataTable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableConverter

public TableConverter(LocalizedXStreams.LocalizedXStream xStream,
                      String dateFormat)
Method Detail

convert

public <T> T convert(Type type,
                     DataTable dataTable)

toList

public <T> List<T> toList(Type type,
                          DataTable dataTable)
Converts a DataTable to a List of objects.


toTable

public DataTable toTable(List<?> objects,
                         String... columnNames)
Converts a List of objects to a DataTable.

Parameters:
objects - the objects to convert
columnNames - an explicit list of column names (currently not used)
Returns:
a DataTable


Copyright © 2012. All Rights Reserved.