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
public class EXPathFileFunctionSet extends BuiltInFunctionSet
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 classes/interfaces inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
BuiltInFunctionSet.Entry
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERROR_INDEX_OUT_OF_BOUNDSstatic java.lang.StringERROR_IOstatic java.lang.StringERROR_NAMESPACEstatic java.lang.StringERROR_PREFIXstatic java.lang.StringNAMESPACEstatic java.lang.StringNEWLINEstatic java.lang.StringPREFIXstatic BigDecimalValueVERSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String_parent(java.lang.String path)static voiderror(java.lang.String message, java.lang.Exception cause, java.lang.String code)Throw an errorstatic voiderror(java.lang.String message, java.lang.String code)Throw an errorjava.lang.StringgetConventionalPrefix()Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.static EXPathFileFunctionSetgetInstance()java.lang.StringgetNamespace()Return the namespace URI for the functions local to this function set.-
Methods inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
bind, copy, getFunctionDetails, getFunctionItem, importFunctionSet, isAvailable, makeFunction, register, registerReducedArityVariants
-
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 Detail
-
VERSION
public static final BigDecimalValue VERSION
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
ERROR_NAMESPACE
public static final java.lang.String ERROR_NAMESPACE
- See Also:
- Constant Field Values
-
ERROR_PREFIX
public static final java.lang.String ERROR_PREFIX
- See Also:
- Constant Field Values
-
ERROR_INDEX_OUT_OF_BOUNDS
public static final java.lang.String ERROR_INDEX_OUT_OF_BOUNDS
- See Also:
- Constant Field Values
-
ERROR_IO
public static final java.lang.String ERROR_IO
- See Also:
- Constant Field Values
-
NEWLINE
public static final java.lang.String NEWLINE
-
-
Method Detail
-
getInstance
public static EXPathFileFunctionSet getInstance()
-
getNamespace
public java.lang.String getNamespace()
Description copied from class:BuiltInFunctionSetReturn the namespace URI for the functions local to this function set.- Overrides:
getNamespacein 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
public java.lang.String getConventionalPrefix()
Description copied from class:BuiltInFunctionSetReturn a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.- Overrides:
getConventionalPrefixin classBuiltInFunctionSet- Returns:
- the string "fn"
-
error
public static void error(java.lang.String message, java.lang.String code) throws XPathExceptionThrow an error- Parameters:
message- the error messagecode- the error code to be used- Throws:
XPathException- always
-
error
public static void error(java.lang.String message, java.lang.Exception cause, java.lang.String code) throws XPathExceptionThrow an error- Parameters:
message- the error messagecause- the underlying exception, usually an IOExceptioncode- the error code to be used- Throws:
XPathException- always
-
_parent
public static java.lang.String _parent(java.lang.String path) throws XPathException- Throws:
XPathException
-
-