cucumber.table
Class TableConverter

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

public class TableConverter
extends java.lang.Object


Constructor Summary
TableConverter(com.thoughtworks.xstream.XStream xStream)
           
 
Method Summary
<T> java.util.List<T>
toList(java.lang.reflect.Type itemType, DataTable dataTable)
          Converts a DataTable to a List of objects.
 DataTable toTable(java.util.List<?> objects)
          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(com.thoughtworks.xstream.XStream xStream)
Method Detail

toList

public <T> java.util.List<T> toList(java.lang.reflect.Type itemType,
                                    DataTable dataTable)
Converts a DataTable to a List of objects.


toTable

public DataTable toTable(java.util.List<?> objects)
Converts a List of objects to a DataTable.

Parameters:
objects - the objects to convers
Returns:
a DataTable