Class MCRStringCondition
java.lang.Object
org.mycore.access.facts.condition.MCRAbstractCondition
org.mycore.access.facts.condition.fact.MCRAbstractFactCondition<MCRStringFact>
org.mycore.access.facts.condition.fact.MCRStringCondition
- All Implemented Interfaces:
MCRCondition
,MCRFactComputable<MCRStringFact>
,MCRFactCondition<MCRStringFact>
- Direct Known Subclasses:
MCRCreatedByCondition
,MCRMODSCollectionCondition
,MCRMODSEmbargoCondition
,MCRMODSGenreCondition
,MCRPIHasRegisteredCondition
,MCRRegExCondition
,MCRRoleCondition
,MCRStateCondition
,MCRUserCondition
This is a simple implemenation.
It checks if the fact already exists in the fact database and returns it.
Otherwise it returns an empty Optional
This is useful for "static" facts that are created before the rule processing started
in MCRFactsAccessSystem.
- Author:
- Robert Stephan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeFact
(MCRFactsHolder facts) Subclasses should override this method to retrieve the fact from MyCoReObject, MCRSession or from elsewhere ...Methods inherited from class org.mycore.access.facts.condition.fact.MCRAbstractFactCondition
getFactName, getTerm, matches, parse, setFactName, setTerm
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
-
Constructor Details
-
MCRStringCondition
public MCRStringCondition()
-
-
Method Details
-
computeFact
Subclasses should override this method to retrieve the fact from MyCoReObject, MCRSession or from elsewhere ...- Parameters:
facts
- - the facts holder containing already retrieved facts- Returns:
- See Also:
-