Class GherkinVariables
java.lang.Object
dev.galasa.framework.spi.language.gherkin.GherkinVariables
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getVariableInstance
(int instance) Gets the map of variable instances.void
processDataLine
(String dataLine) void
processHeaderLine
(String headerLine)
-
Field Details
-
variables
-
-
Constructor Details
-
GherkinVariables
public GherkinVariables()
-
-
Method Details
-
processHeaderLine
-
processDataLine
-
getVariables
-
getNumberOfInstances
public int getNumberOfInstances()- Returns:
- The count of data 'rows' which were parsed/set into this GherkinVariables object. For example: A table with 1 row of content causes a result of 1 to be returned.
-
getVariableInstance
Gets the map of variable instances. ie: A 'row' of data values, which can be accessed from the map using the column header in the Gherkin table.- Parameters:
instance
- The instance number. zero-based. Instance 0 corresponds to the first line of the Gherkin table data.- Returns:
- A map, such that the key is the trimmed-string of the column header in the Gherkin table, and that the object is the value of that table item.
- Throws:
IndexOutOfBoundsException
- when the instance parameter specified exceeds the number of data rows in the Gherkin table (where the first row has an index of 0).
-
getVariablesOriginal
-