Class RuleResult
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.rules.RuleResult
-
- All Implemented Interfaces:
IRuleResult
public class RuleResult extends Object implements IRuleResult
The basic implementation ofIRuleResult.
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.aef2.standard.definitions.rules.IRuleResult
EMPTY_RESULT
-
-
Constructor Summary
Constructors Constructor Description RuleResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDisabled(IRuleTarget target)Adds the target to disabled targets.voidaddDisabled(Collection<? extends IRuleTarget> targets)Adds a collection of targets to the set of disabled targets.voidaddHidden(IRuleTarget target)Adds the target to hidden targets.voidaddHidden(Collection<? extends IRuleTarget> targets)Adds a collection of targets to the set of hidden targets.voidclear()Clears the rule result.booleanequals(Object obj)Set<? extends IRuleTarget>getDisabled()Returns a set of targets to disable.Set<? extends IRuleTarget>getHidden()Returns a set of targets to hide.inthashCode()voidremoveDisabled(IRuleTarget target)Removes the target from disabled targets.voidremoveHidden(IRuleTarget target)Removes the target from hidden targets.
-
-
-
Method Detail
-
addHidden
public void addHidden(IRuleTarget target)
Adds the target to hidden targets.- Parameters:
target- theIRuleTargetinstance, cannot benull.
-
addHidden
public void addHidden(Collection<? extends IRuleTarget> targets)
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
public void addDisabled(IRuleTarget target)
Adds the target to disabled targets.- Parameters:
target- theIRuleTargetinstance, cannot benull.
-
addDisabled
public void addDisabled(Collection<? extends IRuleTarget> targets)
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
public void removeDisabled(IRuleTarget target)
Removes the target from disabled targets.- Parameters:
target- theIRuleTargetinstance, cannot benull.
-
removeHidden
public void removeHidden(IRuleTarget target)
Removes the target from hidden targets.- Parameters:
target- theIRuleTargetinstance, cannot benull.
-
clear
public void clear()
Clears the rule result.
-
getHidden
public Set<? extends IRuleTarget> getHidden()
Description copied from interface:IRuleResultReturns a set of targets to hide.- Specified by:
getHiddenin interfaceIRuleResult- Returns:
- a set of targets to hide, never
null. - See Also:
IRuleTarget
-
getDisabled
public Set<? extends IRuleTarget> getDisabled()
Description copied from interface:IRuleResultReturns a set of targets to disable.- Specified by:
getDisabledin interfaceIRuleResult- Returns:
- a set of targets to disable, never
null. - See Also:
IRuleTarget
-
-