Class MultiRule
java.lang.Object
com._1c.g5.aef2.standard.definitions.rules.MultiRule
- All Implemented Interfaces:
IRule
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MultiRule
public MultiRule()
-
-
Method Details
-
of
Transforms a givenIRuleinto aMultiRule. In case the rule is already aMultiRule, returns it with no changes. Otherwise, a newMultiRulewill be created with the given rule as its single underlying rule.- Parameters:
rule- The rule to transform intoMultiRule- Returns:
- The rule transformed into
MultiRule
-
add
Adds a rule to the list of underlying rules.- Parameters:
rule- The rule to be added- Returns:
- The multirule itself for chaining
-
getResult
Description copied from interface:IRuleReturns the result of the rule.- Specified by:
getResultin interfaceIRule- Parameters:
input- the input.- Returns:
- the
IRuleResultinstance.
-