org.specrunner.source.text
Class DataTable

java.lang.Object
  extended by org.specrunner.source.text.DataTable

public class DataTable
extends Object

Stand for a data table.

Author:
Thiago Santos.

Constructor Summary
DataTable()
           
 
Method Summary
 DataTable add(List<String> example)
          Add a list of examples.
 DataTable add(String name)
          Add a parameter name.
 List<List<String>> getExamples()
          Get the list of examples line.
 List<String> getNames()
          Get the parameter names.
 void setExamples(List<List<String>> examples)
          Set the examples list.
 void setNames(List<String> names)
          Set the parameter names.
 String toString()
           
 String validate()
          Validate data table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataTable

public DataTable()
Method Detail

getNames

public List<String> getNames()
Get the parameter names.

Returns:
The list.

setNames

public void setNames(List<String> names)
Set the parameter names.

Parameters:
names - The names.

add

public DataTable add(String name)
Add a parameter name.

Parameters:
name - A name.
Returns:
The object itself.

getExamples

public List<List<String>> getExamples()
Get the list of examples line.

Returns:
The list.

setExamples

public void setExamples(List<List<String>> examples)
Set the examples list.

Parameters:
examples - The examples.

add

public DataTable add(List<String> example)
Add a list of examples.

Parameters:
example - The example.
Returns:
The object itself.

validate

public String validate()
Validate data table.

Returns:
The error message, if any.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All rights reserved.