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 of IRuleResult.
  • 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

      public void addHidden(IRuleTarget target)
      Adds the target to hidden targets.
      Parameters:
      target - the IRuleTarget instance, cannot be null.
    • 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 be null.
    • addDisabled

      public void addDisabled(IRuleTarget target)
      Adds the target to disabled targets.
      Parameters:
      target - the IRuleTarget instance, cannot be null.
    • 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 be null.
    • removeDisabled

      public void removeDisabled(IRuleTarget target)
      Removes the target from disabled targets.
      Parameters:
      target - the IRuleTarget instance, cannot be null.
    • removeHidden

      public void removeHidden(IRuleTarget target)
      Removes the target from hidden targets.
      Parameters:
      target - the IRuleTarget instance, cannot be null.
    • 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 interface IRuleResult
      Returns:
      a set of targets to hide, never null.
      See Also:
    • getDisabled

      public Set<? extends IRuleTarget> getDisabled()
      Description copied from interface: IRuleResult
      Returns a set of targets to disable.
      Specified by:
      getDisabled in interface IRuleResult
      Returns:
      a set of targets to disable, never null.
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object