Class RawContent

java.lang.Object
ru.ewc.decita.input.RawContent

public final class RawContent extends Object
I am the unified source for building DecisionTables. My main responsibility is to store all the data needed to construct Rules and fill the DecisionTable.
Since:
0.2
  • Constructor Details

    • RawContent

      public RawContent(String[][] conditions, String[][] outcomes, String table)
      Ctor.
      Parameters:
      conditions - A 2D-array of Strings describing the Conditions part of the DecisionTable.
      outcomes - A 2D-array of Strings describing the Outcomes part of the DecisionTable.
      table - Name of the source table.
  • Method Details

    • tableName

      public String tableName()
      Answers the table name.
      Returns:
      The table name.
    • asDecisionTable

      public DecisionTable asDecisionTable()
      Creates a DecisionTable from the raw contents.
      Returns:
      The DecisionTable created from the source file.