com.caucho.xsl.fun
Class FormatNumberFun

java.lang.Object
  extended by com.caucho.xpath.XPathFun
      extended by com.caucho.xsl.fun.FormatNumberFun

public class FormatNumberFun
extends XPathFun

The format-number(...) function.


Constructor Summary
FormatNumberFun()
           
 
Method Summary
 void addLocale(java.lang.String name, java.text.DecimalFormatSymbols symbols)
          Add a new xsl:locale
 java.lang.Object eval(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern pattern, java.util.ArrayList args)
          Evaluate the function.
 java.util.HashMap getLocales()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatNumberFun

public FormatNumberFun()
Method Detail

addLocale

public void addLocale(java.lang.String name,
                      java.text.DecimalFormatSymbols symbols)
Add a new xsl:locale


getLocales

public java.util.HashMap getLocales()

eval

public java.lang.Object eval(org.w3c.dom.Node node,
                             ExprEnvironment env,
                             AbstractPattern pattern,
                             java.util.ArrayList args)
                      throws XPathException
Evaluate the function.

Specified by:
eval in class XPathFun
Parameters:
pattern - The context pattern.
args - The evaluated arguments
Throws:
XPathException