net.sf.saxon.functions
Class VendorFunctionLibrary
java.lang.Object
net.sf.saxon.functions.IntegratedFunctionLibrary
net.sf.saxon.functions.VendorFunctionLibrary
- All Implemented Interfaces:
- Serializable, FunctionLibrary
- Direct Known Subclasses:
- ExtraFunctionLibrary
public class VendorFunctionLibrary
- extends IntegratedFunctionLibrary
The VendorFunctionLibrary represents specially-recognized functions in the Saxon namespace.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VendorFunctionLibrary
public VendorFunctionLibrary()
- Create the Vendor Function Library for Saxon
init
protected void init()
makeSaxonFunction
public Expression makeSaxonFunction(String localName,
Expression[] arguments,
StaticContext env,
Container container)
throws XPathException
- Make a Saxon function with a given name
- Parameters:
localName
- the local name of the functionarguments
- the arguments of the functionenv
- the static contextcontainer
- the container for the new expression
- Returns:
- an exprssion representing a call on the given function
- Throws:
XPathException
pluralArguments
public static String pluralArguments(int num)
- Utility routine used in constructing error messages
- Parameters:
num
- a number
- Returns:
- the string " argument" or " arguments" if num is plural
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.