com.canoo.webtest.engine.xpath
Class MatchesFunction

java.lang.Object
  extended by org.apache.xpath.Expression
      extended by org.apache.xpath.functions.Function
          extended by org.apache.xpath.functions.FunctionOneArg
              extended by org.apache.xpath.functions.Function2Args
                  extended by org.apache.xpath.functions.Function3Args
                      extended by com.canoo.webtest.engine.xpath.MatchesFunction
All Implemented Interfaces:
Serializable, SourceLocator, org.apache.xpath.ExpressionNode, org.apache.xpath.ExpressionOwner, org.apache.xpath.XPathVisitable

public class MatchesFunction
extends org.apache.xpath.functions.Function3Args

This function should work as the matches function defined by XPath 2. This implementation is provided as long as this is not natively available in Xalan.
This function is available under the name "wt:matches".

Author:
Marc Guillemot
See Also:
Serialized Form

Constructor Summary
MatchesFunction()
           
 
Method Summary
 void checkNumberArgs(int _argNum)
           
 org.apache.xpath.objects.XObject execute(org.apache.xpath.XPathContext xctxt)
           
 
Methods inherited from class org.apache.xpath.functions.Function3Args
callArgVisitors, canTraverseOutsideSubtree, deepEquals, fixupVariables, getArg2, reportWrongNumberArgs, setArg
 
Methods inherited from class org.apache.xpath.functions.Function2Args
getArg1
 
Methods inherited from class org.apache.xpath.functions.FunctionOneArg
getArg0, getExpression, setExpression
 
Methods inherited from class org.apache.xpath.functions.Function
callVisitors, postCompileStep
 
Methods inherited from class org.apache.xpath.Expression
asIterator, asIteratorRaw, asNode, assertion, bool, error, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isSameClass, isStableNumber, num, warn, xstr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchesFunction

public MatchesFunction()
Method Detail

execute

public org.apache.xpath.objects.XObject execute(org.apache.xpath.XPathContext xctxt)
                                         throws TransformerException
Overrides:
execute in class org.apache.xpath.functions.Function
Throws:
TransformerException

checkNumberArgs

public void checkNumberArgs(int _argNum)
                     throws org.apache.xpath.functions.WrongNumberArgsException
Overrides:
checkNumberArgs in class org.apache.xpath.functions.Function3Args
Throws:
org.apache.xpath.functions.WrongNumberArgsException

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.