com.novell.xml.xpath.functions
Class xpathRound
java.lang.Object
com.novell.xml.xpath.Function
com.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 |
xpathRound
public xpathRound()
- Construct an object for the round() function
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.