com.novell.xml.xpath.functions
Class xpathRound

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

public class xpathRound
extends Function

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


Constructor Summary
xpathRound()
          Construct an object for the round() function
 
Method Summary
 ExpressionValue invoke(Object[] args)
          Perform round() 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

xpathRound

public xpathRound()
Construct an object for the round() function

Method Detail

invoke

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

Overrides:
invoke in class Function
Parameters:
args - List of arguments. One argument of type number
Returns:
The closest integer to the argument. If there are two such integers, the even integer is returned.
Throws:
XPathEvaluationException

toString

public String toString()
Return function name.

Returns:
Function name.