com.caucho.xsl.fun
Class FormatNumberFun
java.lang.Object
com.caucho.xpath.XPathFun
com.caucho.xsl.fun.FormatNumberFun
public class FormatNumberFun
- extends XPathFun
The format-number(...) function.
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 |
FormatNumberFun
public FormatNumberFun()
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