Package net.sf.saxon.trans.rules
Class RuleSearchState
- java.lang.Object
-
- net.sf.saxon.trans.rules.RuleSearchState
-
- Direct Known Subclasses:
PreconditionMatcher
public class RuleSearchState extends java.lang.Object
A simple class for holding stateful details of a rule search operation This is a dummy implementation for Saxon-HE which does not optimize searching a rule chain. It is subclassed for Saxon-EE.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RuleSearchState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkPreconditions(Rule rule)
Use this search state to check whether the preconditions for a particular rule are satisfiedstatic RuleSearchState
getInstance()
-
-
-
Method Detail
-
getInstance
public static RuleSearchState getInstance()
-
checkPreconditions
public boolean checkPreconditions(Rule rule) throws XPathException
Use this search state to check whether the preconditions for a particular rule are satisfied- Parameters:
rule
- the rule being tested- Returns:
- true if all preconditions are satisfied; in the HE implementation, there are no preconditions, so this is always true.
- Throws:
XPathException
- (in a subclass) if evaluation of preconditions fails.
-
-