Class 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.
    • Method Detail

      • getNamespace

        public java.lang.String getNamespace()
        Description copied from class: BuiltInFunctionSet
        Return the namespace URI for the functions local to this function set.
        Overrides:
        getNamespace in class BuiltInFunctionSet
        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: BuiltInFunctionSet
        Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.
        Overrides:
        getConventionalPrefix in class BuiltInFunctionSet
        Returns:
        the string "fn"
      • error

        public static void error​(java.lang.String message,
                                 java.lang.String code)
                          throws XPathException
        Throw an error
        Parameters:
        message - the error message
        code - 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 XPathException
        Throw an error
        Parameters:
        message - the error message
        cause - the underlying exception, usually an IOException
        code - the error code to be used
        Throws:
        XPathException - always