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 MultiRule
add(IRule rule)
Adds a rule to the list of underlying rules.IRuleResult
getResult(IRuleInput input)
Returns the result of the rule.static MultiRule
of(IRule rule)
-
-
-
Method Detail
-
of
public static MultiRule of(IRule rule)
Transforms a givenIRule
into aMultiRule
. In case the rule is already aMultiRule
, returns it with no changes. Otherwise, a newMultiRule
will 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:IRule
Returns the result of the rule.- Specified by:
getResult
in interfaceIRule
- Parameters:
input
- the input.- Returns:
- the
IRuleResult
instance.
-
-