Match
Match declares a condition and either an output or a nested rule.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Match(
sourceIdValue):Match
constructor associates the match with its source identifier.
Parameters
Section titled “Parameters”sourceIdValue
Section titled “sourceIdValue”number
Returns
Section titled “Returns”Match
Methods
Section titled “Methods”condition()
Section titled “condition()”condition():
ValueString
condition returns the condition expression.
Returns
Section titled “Returns”explanation()
Section titled “explanation()”explanation():
ValueString
explanation returns the explanation expression or an empty value.
Returns
Section titled “Returns”hasExplanation()
Section titled “hasExplanation()”hasExplanation():
boolean
hasExplanation reports whether the explanation field is set.
Returns
Section titled “Returns”boolean
hasOutput()
Section titled “hasOutput()”hasOutput():
boolean
hasOutput reports whether the output field is set.
Returns
Section titled “Returns”boolean
hasRule()
Section titled “hasRule()”hasRule():
boolean
hasRule reports whether a nested rule is set.
Returns
Section titled “Returns”boolean
output()
Section titled “output()”output():
ValueString
output returns the output expression or an empty value.
Returns
Section titled “Returns”rule()
Section titled “rule()”rule():
Rule|undefined
rule returns the nested rule when set.
Returns
Section titled “Returns”Rule | undefined
setCondition()
Section titled “setCondition()”setCondition(
value):void
setCondition sets the CEL condition.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setExplanation()
Section titled “setExplanation()”setExplanation(
value):void
setExplanation sets the CEL explanation expression.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setOutput()
Section titled “setOutput()”setOutput(
value):void
setOutput sets the CEL output expression.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setRule()
Section titled “setRule()”setRule(
value):void
setRule sets the nested rule.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
sourceId()
Section titled “sourceId()”sourceId():
number
sourceId returns the source identifier associated with the match.
Returns
Section titled “Returns”number