Class MCRRegExCondition
java.lang.Object
org.mycore.access.facts.condition.MCRAbstractCondition
org.mycore.access.facts.condition.fact.MCRAbstractFactCondition<MCRStringFact>
org.mycore.access.facts.condition.fact.MCRStringCondition
org.mycore.access.facts.condition.fact.MCRRegExCondition
- All Implemented Interfaces:
MCRCondition
,MCRFactComputable<MCRStringFact>
,MCRFactCondition<MCRStringFact>
This condition checks if the given id or another fact matches a regular expression.
Examples:
<rege>webpage:/content/search/.*_intern.xed</regex>
<regex basefact='user'>.*admin</regex>
<regex basefact='category'>ddc:.*</regex>
- 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 ...void
implementors of this method should call super.parse(xml) to bind the XML element to the conditionMethods inherited from class org.mycore.access.facts.condition.fact.MCRAbstractFactCondition
getFactName, getTerm, matches, 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
-
MCRRegExCondition
public MCRRegExCondition()
-
-
Method Details
-
parse
Description copied from class:MCRAbstractFactCondition
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 classMCRAbstractFactCondition<MCRStringFact>
-
computeFact
Description copied from class:MCRStringCondition
Subclasses should override this method to retrieve the fact from MyCoReObject, MCRSession or from elsewhere ...- Specified by:
computeFact
in interfaceMCRFactComputable<MCRStringFact>
- Overrides:
computeFact
in classMCRStringCondition
- Parameters:
facts
- - the facts holder containing already retrieved facts- Returns:
- See Also:
-