com.rsa.certj.xml

Class FunctionHere

java.lang.Object
  |
  +--org.apache.xpath.Expression
        |
        +--org.apache.xpath.functions.Function
              |
              +--org.apache.xpath.functions.FuncCurrent
                    |
                    +--com.rsa.certj.xml.FunctionHere
All Implemented Interfaces:
org.apache.xpath.ExpressionNode, Serializable, javax.xml.transform.SourceLocator, org.apache.xpath.XPathVisitable

public class FunctionHere
extends org.apache.xpath.functions.FuncCurrent

This class defines the here() function for XPath evaluation. The XPath transformation needs this function, and it is not included in the Apache XPath toolkit.

Copyright © RSA Security Inc., 2001-2002. All rights reserved.

See Also

Serialized Form

Constructor Summary

FunctionHere()

Creates an empty FunctionHere object.

 

Method Summary

 void

checkNumberArgs(int argNum)

Checks the number of arguments when calling the function here().

 org.apache.xpath.objects.XObject

execute(org.apache.xpath.XPathContext xpathCtxt)

Executes the function here().

 
Methods inherited from class org.apache.xpath.functions.FuncCurrent
fixupVariables
 
Methods inherited from class org.apache.xpath.functions.Function
callArgVisitors, callVisitors, deepEquals, postCompileStep, setArg
 
Methods inherited from class org.apache.xpath.Expression
asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, error, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionHere

public FunctionHere()
Creates an empty FunctionHere object. It is needed by the compiler in the XPath package.
Method Detail

checkNumberArgs

public void checkNumberArgs(int argNum)
                     throws org.apache.xpath.functions.WrongNumberArgsException
Checks the number of arguments when calling the function here(). No arguments are permitted. If argNum is not equal to zero, this method throws an exception.

Overrides

checkNumberArgs in class org.apache.xpath.functions.Function

Parameters

         argNum  

The number of arguments passed to here().

Throws

org.apache.xpath.functions.WrongNumberArgsException - If argNum is not equal to zero.

execute

public org.apache.xpath.objects.XObject execute(org.apache.xpath.XPathContext xpathCtxt)
                                         throws javax.xml.transform.TransformerException
Executes the function here(). This method overrides the execute() method in FuncCurrent.

Overrides

execute in class org.apache.xpath.functions.FuncCurrent

Parameters

         xpathCtxt  

An XPathContext object containing the current execution context.

Returns

An XObject containing the result of the function here().

Throws

javax.xml.transform.TransformerException - If an error occurs while performing the execution.


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000