Class MCRAbstractFactCondition<F extends MCRFact<?>>
java.lang.Object
org.mycore.access.facts.condition.MCRAbstractCondition
org.mycore.access.facts.condition.fact.MCRAbstractFactCondition<F>
- Type Parameters:
F
- the class of the fact
- All Implemented Interfaces:
MCRCondition
,MCRFactComputable<F>
,MCRFactCondition<F>
- Direct Known Subclasses:
MCRCategoryCondition
,MCRIPCondition
,MCRStringCondition
public abstract class MCRAbstractFactCondition<F extends MCRFact<?>>
extends MCRAbstractCondition
implements MCRFactCondition<F>
This is the base implementation for a condition which evaluates or produces facts
Subclasses should call super.parse(xml) to bind the XML element to the condition.
If you specify the attribute 'fact' on the condition XML. It will be used as name for
the newly created fact. Otherwise the name of the condition will be used as name for the fact.
- Author:
- Robert Stephan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTerm()
boolean
matches
(MCRFactsHolder facts) void
implementors of this method should call super.parse(xml) to bind the XML element to the conditionvoid
setFactName
(String factName) void
Methods inherited from class org.mycore.access.facts.condition.MCRAbstractCondition
getBoundElement, getType, isDebug, setDebug
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mycore.access.facts.model.MCRCondition
getBoundElement, getType, isDebug, setDebug
Methods inherited from interface org.mycore.access.facts.model.MCRFactComputable
computeFact
-
Constructor Details
-
MCRAbstractFactCondition
public MCRAbstractFactCondition()
-
-
Method Details
-
parse
implementors of this method should call super.parse(xml) to bind the XML element to the condition- Specified by:
parse
in interfaceMCRCondition
- Overrides:
parse
in classMCRAbstractCondition
-
matches
- Specified by:
matches
in interfaceMCRCondition
- Specified by:
matches
in classMCRAbstractCondition
-
getFactName
- Specified by:
getFactName
in interfaceMCRFactComputable<F extends MCRFact<?>>
-
setFactName
-
getTerm
-
setTerm
-