Package com.saxonica.functions.extfn
Class EXPathFileFunctionSet
java.lang.Object
net.sf.saxon.functions.registry.BuiltInFunctionSet
com.saxonica.functions.extfn.EXPathFileFunctionSet
- All Implemented Interfaces:
FunctionLibrary
Implementation of the file:base-dir function in the EXPath file library.
Other functions in this library are implemented as reflexive extension
functions, but this one can't be implemented this way because it needs
access to the static context.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
BuiltInFunctionSet.Entry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final NamespaceUri
static final String
static final NamespaceUri
static final String
static final String
static final BigDecimalValue
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static XPathException
Throw an errorstatic XPathException
Throw an errorReturn a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.static EXPathFileFunctionSet
Return the namespace URI for the functions local to this function set.Methods inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
bind, copy, field, getFunctionDetails, getFunctionItem, importFunctionSet, isAvailable, makeFunction, register, register, registerVariadic
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.saxon.functions.FunctionLibrary
setConfiguration
-
Field Details
-
VERSION
-
NAMESPACE
-
PREFIX
- See Also:
-
ERROR_NAMESPACE
-
ERROR_PREFIX
- See Also:
-
ERROR_INDEX_OUT_OF_BOUNDS
- See Also:
-
ERROR_IO
- See Also:
-
NEWLINE
-
-
Method Details
-
getInstance
-
getNamespace
Description copied from class:BuiltInFunctionSet
Return the namespace URI for the functions local to this function set.- Overrides:
getNamespace
in classBuiltInFunctionSet
- Returns:
- the namespace URI of the functions local to this function set. Note that functions imported from another function set may have a different namespace URI.
-
getConventionalPrefix
Description copied from class:BuiltInFunctionSet
Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.- Overrides:
getConventionalPrefix
in classBuiltInFunctionSet
- Returns:
- the string "fn"
-
error
Throw an error- Parameters:
message
- the error messagecode
- the error code to be used- Returns:
- XPathException always
-
error
public static XPathException error(String message, Exception cause, String code) throws XPathException Throw an error- Parameters:
message
- the error messagecause
- the underlying exception, usually an IOExceptioncode
- the error code to be used- Returns:
- XPathException always
- Throws:
XPathException
-
_parent
- Throws:
XPathException
-