Class RuleResult
java.lang.Object
com._1c.g5.aef2.standard.definitions.rules.RuleResult
- All Implemented Interfaces:
IRuleResult
The basic implementation of
IRuleResult
.-
Field Summary
Fields inherited from interface com._1c.g5.aef2.standard.definitions.rules.IRuleResult
EMPTY_RESULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDisabled
(IRuleTarget target) Adds the target to disabled targets.void
addDisabled
(Collection<? extends IRuleTarget> targets) Adds a collection of targets to the set of disabled targets.void
addHidden
(IRuleTarget target) Adds the target to hidden targets.void
addHidden
(Collection<? extends IRuleTarget> targets) Adds a collection of targets to the set of hidden targets.void
clear()
Clears the rule result.boolean
Set<? extends IRuleTarget>
Returns a set of targets to disable.Set<? extends IRuleTarget>
Returns a set of targets to hide.int
hashCode()
boolean
Is rule result for one or many editing objectsvoid
removeDisabled
(IRuleTarget target) Removes the target from disabled targets.void
removeHidden
(IRuleTarget target) Removes the target from hidden targets.void
setManyEditingObjects
(boolean manyEditingObjects) Set flag is rule result for one or many editing objects
-
Constructor Details
-
RuleResult
public RuleResult()
-
-
Method Details
-
setManyEditingObjects
public void setManyEditingObjects(boolean manyEditingObjects) Set flag is rule result for one or many editing objects- Parameters:
set
-if rule result for many editing objects, or if one
-
hasManyEditingObjects
public boolean hasManyEditingObjects()Is rule result for one or many editing objects- Returns:
if rule result for many editing objects, or if one
-
addHidden
Adds the target to hidden targets.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
addHidden
Adds a collection of targets to the set of hidden targets.- Parameters:
targets
- A collection of targets to add to hidden targets, cannot benull
.
-
addDisabled
Adds the target to disabled targets.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
addDisabled
Adds a collection of targets to the set of disabled targets.- Parameters:
targets
- A collection of targets to add to disabled targets, cannot benull
.
-
removeDisabled
Removes the target from disabled targets.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
removeHidden
Removes the target from hidden targets.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
clear
public void clear()Clears the rule result. -
getHidden
Description copied from interface:IRuleResult
Returns a set of targets to hide.- Specified by:
getHidden
in interfaceIRuleResult
- Returns:
- a set of targets to hide, never
null
. - See Also:
-
getDisabled
Description copied from interface:IRuleResult
Returns a set of targets to disable.- Specified by:
getDisabled
in interfaceIRuleResult
- Returns:
- a set of targets to disable, never
null
. - See Also:
-
hashCode
public int hashCode() -
equals
-