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 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
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:IRule
Returns the result of the rule.- Specified by:
getResult
in interfaceIRule
- Parameters:
input
- the input.- Returns:
- the
IRuleResult
instance.
-