Class Table

java.lang.Object
io.karatelabs.gherkin.Table

public class Table extends Object
  • Constructor Details

  • Method Details

    • getDynamicExpression

      public String getDynamicExpression()
    • isDynamic

      public boolean isDynamic()
    • getKeys

      public Collection<String> getKeys()
    • getLineNumberForRow

      public int getLineNumberForRow(int i)
    • replace

      public Table replace(String token, String value)
    • getValueAsString

      public String getValueAsString(String key, int row)
    • fromKarateJson

      public static Table fromKarateJson(List<Map<String,Object>> tableRows)
    • toJson

      public List<Map<String,Object>> toJson()
    • getRows

      public List<List<String>> getRows()
    • getRowsAsMaps

      public List<Map<String,String>> getRowsAsMaps()
    • getRowsAsMapsConverted

      public List<Map<String,Object>> getRowsAsMapsConverted()
    • getExampleData

      public Map<String,Object> getExampleData(int exampleIndex)
    • getRawExampleData

      public Map<String,String> getRawExampleData(int exampleIndex)
      Returns the verbatim cell text (keyed by column name) for the given example row. Used for <placeholder> substitution into step text: for !-suffixed (EVALUATED) columns the cell content is the JS expression source, so splicing it verbatim keeps quoted strings quoted and inline JSON valid in a match RHS context.
    • toString

      public String toString()
      Overrides:
      toString in class Object