org.exist.xquery.functions.text
Class AbstractMatchFunction

java.lang.Object
  extended byorg.exist.xquery.AbstractExpression
      extended byorg.exist.xquery.PathExpr
          extended byorg.exist.xquery.Function
              extended byorg.exist.xquery.functions.ExtRegexp
                  extended byorg.exist.xquery.functions.text.AbstractMatchFunction
All Implemented Interfaces:
CompiledXQuery, Expression
Direct Known Subclasses:
FuzzyMatchAll

public abstract class AbstractMatchFunction
extends ExtRegexp

Author:
Wolfgang Meier (wolfgang@exist-db.org)

Field Summary
 
Fields inherited from class org.exist.xquery.functions.ExtRegexp
cached, signature, type
 
Fields inherited from class org.exist.xquery.Function
BUILTIN_FUNCTION_NS, mySignature
 
Fields inherited from class org.exist.xquery.PathExpr
inPredicate, keepVirtual, LOG, source, steps
 
Fields inherited from class org.exist.xquery.AbstractExpression
context, contextDocSet, contextId
 
Fields inherited from interface org.exist.xquery.Expression
EXPRESSION_ID_INVALID, IGNORE_CONTEXT, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NO_CONTEXT_ID, SINGLE_STEP_EXECUTION
 
Constructor Summary
AbstractMatchFunction(XQueryContext context, int type, FunctionSignature signature)
           
 
Method Summary
abstract  Sequence evalQuery(NodeSet nodes, java.util.List terms)
           
protected  java.util.List getSearchTerms(XQueryContext context, Sequence contextSequence)
           
 NodeSet mergeResults(NodeSet[] hits)
           
 
Methods inherited from class org.exist.xquery.functions.ExtRegexp
eval, getDependencies, getSearchTerms, getTermDependencies, resetState, translateRegexp
 
Methods inherited from class org.exist.xquery.Function
analyze, checkArgument, checkArguments, createFunction, dump, getArgument, getArgumentCount, getArguments, getASTNode, getCardinality, getName, getParent, getSignature, isCalledAs, returnsType, setArguments, setASTNode, setParent, setPrimaryAxis, toString
 
Methods inherited from class org.exist.xquery.PathExpr
add, add, addPath, addPredicate, dump, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLiteralValue, getSource, isValid, replaceLastExpression, reset, setContext, setSource
 
Methods inherited from class org.exist.xquery.AbstractExpression
eval, getContextDocSet, getContextId, getExpressionId, setContextDocSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.exist.xquery.CompiledXQuery
eval
 

Constructor Detail

AbstractMatchFunction

public AbstractMatchFunction(XQueryContext context,
                             int type,
                             FunctionSignature signature)
Method Detail

evalQuery

public abstract Sequence evalQuery(NodeSet nodes,
                                   java.util.List terms)
                            throws XPathException
Overrides:
evalQuery in class ExtRegexp
Throws:
XPathException

mergeResults

public NodeSet mergeResults(NodeSet[] hits)

getSearchTerms

protected java.util.List getSearchTerms(XQueryContext context,
                                        Sequence contextSequence)
                                 throws XPathException
Throws:
XPathException


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.