Class GherkinVariables

java.lang.Object
dev.galasa.framework.spi.language.gherkin.GherkinVariables

public class GherkinVariables extends Object
  • Field Details

  • Constructor Details

    • GherkinVariables

      public GherkinVariables()
  • Method Details

    • processHeaderLine

      public void processHeaderLine(String headerLine)
    • processDataLine

      public void processDataLine(String dataLine)
    • getVariables

      public Map<String,ArrayList<String>> 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

      public Map<String,Object> getVariableInstance(int instance)
      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

      public Map<String,Object> getVariablesOriginal()