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,
StaticContext env,
Expression[] arguments)
throws XPathException
- Make a Saxon function with a given name
- Parameters:
localName
- the local name of the functionenv
- the static contextarguments
- the arguments of the function
- 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) Saxonica Limited. All rights reserved.