Package org.jbehave.core.model
Class ExamplesTableFactory
- java.lang.Object
-
- org.jbehave.core.model.ExamplesTableFactory
-
public class ExamplesTableFactory extends Object
Factory that creates instances of ExamplesTable from different type of inputs:- table text input, i.e. any input that contains a
Keywords.examplesTableHeaderSeparator()
- resource path input, the table as text is loaded via the
ResourceLoader
.
ParameterConverters
to allow the ExamplesTable to convert row values.NOTE: Users needing parameter conversion in the ExamplesTable, i.e. invoking
ExamplesTable.getRowAsParameters(int)
, will need to use a factory constructor providing explicitly the ParameterConverters instance configured in theConfiguration.useParameterConverters(ParameterConverters)
. - table text input, i.e. any input that contains a
-
-
Constructor Summary
Constructors Constructor Description ExamplesTableFactory(Configuration configuration)
ExamplesTableFactory(Keywords keywords, ResourceLoader resourceLoader, TableTransformers tableTransformers)
ExamplesTableFactory(Keywords keywords, ResourceLoader resourceLoader, ParameterConverters parameterConverters, ParameterControls parameterControls, TableParsers tableParsers, TableTransformers tableTransformers)
ExamplesTableFactory(ResourceLoader resourceLoader, TableTransformers tableTransformers)
-
Method Summary
Modifier and Type Method Description ExamplesTable
createExamplesTable(String input)
protected boolean
isTable(String table, ExamplesTable.TableProperties properties)
Keywords
keywords()
void
useKeywords(Keywords keywords)
-
-
-
Constructor Detail
-
ExamplesTableFactory
public ExamplesTableFactory(ResourceLoader resourceLoader, TableTransformers tableTransformers)
-
ExamplesTableFactory
public ExamplesTableFactory(Keywords keywords, ResourceLoader resourceLoader, TableTransformers tableTransformers)
-
ExamplesTableFactory
public ExamplesTableFactory(Keywords keywords, ResourceLoader resourceLoader, ParameterConverters parameterConverters, ParameterControls parameterControls, TableParsers tableParsers, TableTransformers tableTransformers)
-
ExamplesTableFactory
public ExamplesTableFactory(Configuration configuration)
-
-
Method Detail
-
createExamplesTable
public ExamplesTable createExamplesTable(String input)
-
isTable
protected boolean isTable(String table, ExamplesTable.TableProperties properties)
-
useKeywords
public void useKeywords(Keywords keywords)
-
keywords
public Keywords keywords()
-
-