org.sodatest.api.java
Class JavaReportConverter

java.lang.Object
  extended by org.sodatest.api.java.JavaParameterConverter
      extended by org.sodatest.api.java.JavaReportConverter
Direct Known Subclasses:
ReflectiveSodaReportForJava, SodaReportForJava

public abstract class JavaReportConverter
extends JavaParameterConverter

Abstract class for Java-based SodaReports that provides helper methods for Java-Scala integration, especially around conversion of Report results.


Constructor Summary
JavaReportConverter()
           
 
Method Summary
protected  scala.collection.Seq<scala.collection.Seq<String>> convertReport(List<List<String>> report)
          Converts a Java List> to a Scala Seq[Seq[String]] Subclasses can override this method if they wish to use a different conversion.
protected  List<List<String>> toReport(Iterable<Iterable<?>> table)
           
protected  List<List<String>> toSingleCellReport(Object value)
           
protected  List<List<String>> toSingleColumnReport(Iterable<?> values)
           
protected  List<List<String>> toSingleRowReport(Iterable<?> values)
           
 
Methods inherited from class org.sodatest.api.java.JavaParameterConverter
convertParameters, list, None
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaReportConverter

public JavaReportConverter()
Method Detail

convertReport

protected scala.collection.Seq<scala.collection.Seq<String>> convertReport(List<List<String>> report)
Converts a Java List> to a Scala Seq[Seq[String]] Subclasses can override this method if they wish to use a different conversion.

Returns:
the contents of 'report' inserted into a Scala Seq of Seqs.

toSingleCellReport

protected List<List<String>> toSingleCellReport(Object value)

toSingleRowReport

protected List<List<String>> toSingleRowReport(Iterable<?> values)

toSingleColumnReport

protected List<List<String>> toSingleColumnReport(Iterable<?> values)

toReport

protected List<List<String>> toReport(Iterable<Iterable<?>> table)


Copyright © 2010-2011 Belmont Technology Pty Ltd. All Rights Reserved.