Class MultiRule
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.rules.MultiRule
-
-
Constructor Summary
Constructors Constructor Description MultiRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiRuleadd(IRule rule)Adds a rule to the list of underlying rules.IRuleResultgetResult(IRuleInput input)Returns the result of the rule.static MultiRuleof(IRule rule)
-
-
-
Method Detail
-
of
public static MultiRule of(IRule rule)
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
public MultiRule add(IRule rule)
Adds a rule to the list of underlying rules.- Parameters:
rule- The rule to be added- Returns:
- The multirule itself for chaining
-
getResult
public IRuleResult getResult(IRuleInput input)
Description copied from interface:IRuleReturns the result of the rule.- Specified by:
getResultin interfaceIRule- Parameters:
input- the input.- Returns:
- the
IRuleResultinstance.
-
-