Class MCRAbstractCondition

java.lang.Object
org.mycore.access.facts.condition.MCRAbstractCondition
All Implemented Interfaces:
MCRCondition
Direct Known Subclasses:
MCRAbstractCombinedCondition, MCRAbstractFactCondition

public abstract class MCRAbstractCondition extends Object implements MCRCondition
This is the base implementation for a condition. It is the super class for MCRCombinedCondition and MCRFactCondition.
Author:
Robert Stephan
  • Constructor Details

    • MCRAbstractCondition

      public MCRAbstractCondition()
  • Method Details

    • parse

      public void parse(Element xml)
      implementors of this method should call super.parse(xml) to bind the XML element to the condition
      Specified by:
      parse in interface MCRCondition
    • getBoundElement

      public Element getBoundElement()
      Description copied from interface: MCRCondition
      This is primary for rules.xml debugging purposes
      Specified by:
      getBoundElement in interface MCRCondition
      Returns:
      the part of the xml which this Condition represents
    • getType

      public String getType()
      Description copied from interface: MCRCondition
      the type of the rule
      Specified by:
      getType in interface MCRCondition
      Returns:
    • isDebug

      public boolean isDebug()
      Specified by:
      isDebug in interface MCRCondition
    • setDebug

      public void setDebug(boolean b)
      Specified by:
      setDebug in interface MCRCondition
    • matches

      public abstract boolean matches(MCRFactsHolder facts)
      Specified by:
      matches in interface MCRCondition