com.novell.xml.xpath.functions
Class xpathNumber

java.lang.Object
  extended bycom.novell.xml.xpath.Function
      extended bycom.novell.xml.xpath.functions.xpathNumber

public class xpathNumber
extends Function

This class implements the XPath number(object?) built-in function


Constructor Summary
xpathNumber()
          Construct an object for the number() function
 
Method Summary
 ExpressionValue invoke(Object[] args)
          Perform number() function
 String toString()
          Return function name.
 
Methods inherited from class com.novell.xml.xpath.Function
getInstance, getSignature, isConstant, registerForReset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

xpathNumber

public xpathNumber()
Construct an object for the number() function

Method Detail

invoke

public ExpressionValue invoke(Object[] args)
                       throws XPathEvaluationException
Perform number() function

Overrides:
invoke in class Function
Parameters:
args - List of arguments. First first argument must be the context node. The second argument must be the expression context object The third argument may not exist, or it may be an expression value
Returns:
The number value of the argument - the current context node (if no third parm) or the converted expression value
Throws:
XPathEvaluationException

toString

public String toString()
Return function name.

Returns:
Function name.