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 void
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
equals(Object obj)
Set<? extends IRuleTarget>
getDisabled()
Returns a set of targets to disable.Set<? extends IRuleTarget>
getHidden()
Returns a set of targets to hide.int
hashCode()
void
removeDisabled(IRuleTarget target)
Removes the target from disabled targets.void
removeHidden(IRuleTarget target)
Removes the target from hidden targets.
-
-
-
Method Detail
-
addHidden
public void addHidden(IRuleTarget target)
Adds the target to hidden targets.- Parameters:
target
- theIRuleTarget
instance, 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
- theIRuleTarget
instance, 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
- theIRuleTarget
instance, cannot benull
.
-
removeHidden
public void removeHidden(IRuleTarget target)
Removes the target from hidden targets.- Parameters:
target
- theIRuleTarget
instance, cannot benull
.
-
clear
public void clear()
Clears the rule result.
-
getHidden
public Set<? extends IRuleTarget> 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:
IRuleTarget
-
getDisabled
public Set<? extends IRuleTarget> 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:
IRuleTarget
-
-