Class ExpressionScope

java.lang.Object
nz.org.riskscape.wizard.survey2.ExpressionScope
All Implemented Interfaces:
BackingData

public class ExpressionScope extends Object implements BackingData

Backing data for question with Expression type answers. Used when the scope of the expression is not the full scope of the pipeline.

  • Constructor Details

    • ExpressionScope

      public ExpressionScope(nz.org.riskscape.engine.types.Struct scope)
  • Method Details

    • getParameterType

      public Class<?> getParameterType()
      Specified by:
      getParameterType in interface BackingData
      Returns:
      the class which corresponds to Question.getParameterType() this backing data. Mostly used for assertions and type safety checks in generic code.
    • getScope

      public nz.org.riskscape.engine.types.Struct getScope()