Class AbstractRuleSet

java.lang.Object
fr.lirmm.graphik.integraal.core.ruleset.AbstractRuleSet
All Implemented Interfaces:
ImmutableRuleSet, RuleSet, Iterable<Rule>
Direct Known Subclasses:
LinkedListRuleSet

public abstract class AbstractRuleSet extends Object implements RuleSet
Partial RuleSet implementation with shared bulk operations and rendering.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Constructor Details

    • AbstractRuleSet

      protected AbstractRuleSet()
      Creates an abstract rule set base implementation.
  • Method Details

    • addAll

      public boolean addAll(Iterator<Rule> ruleIterator)
      Description copied from interface: RuleSet
      Adds all rules provided by the specified iterator.
      Specified by:
      addAll in interface RuleSet
      Parameters:
      ruleIterator - the rules to add
      Returns:
      true if this set changed as a result of the call
    • addAll

      public boolean addAll(CloseableIterator<Rule> ruleIterator) throws RuleSetException
      Description copied from interface: RuleSet
      Adds all rules provided by the specified closeable iterator.
      Specified by:
      addAll in interface RuleSet
      Parameters:
      ruleIterator - the rules to add
      Returns:
      true if this set changed as a result of the call
      Throws:
      RuleSetException - if the iteration fails
    • removeAll

      public boolean removeAll(Iterator<Rule> ruleIterator)
      Description copied from interface: RuleSet
      Removes all rules provided by the specified iterator.
      Specified by:
      removeAll in interface RuleSet
      Parameters:
      ruleIterator - the rules to remove
      Returns:
      true if this set changed as a result of the call
    • removeAll

      public boolean removeAll(CloseableIterator<Rule> ruleIterator) throws RuleSetException
      Description copied from interface: RuleSet
      Removes all rules provided by the specified closeable iterator.
      Specified by:
      removeAll in interface RuleSet
      Parameters:
      ruleIterator - the rules to remove
      Returns:
      true if this set changed as a result of the call
      Throws:
      RuleSetException - if the iteration fails
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public void toString(StringBuilder sb)
      Appends a string representation of this rule set to the given builder.
      Parameters:
      sb - the target builder