Interface EnvironmentVariableResolver

  • All Known Implementing Classes:

    public interface EnvironmentVariableResolver
    This interface defines a Saxon plug-in used to resolve calls on the XPath 3.0 functions available-environment-variables() and environment-variable(). The standard implementation reads environment variables using the Java method System.getenv(); this can be overridden by a user-provided implementation that resolves environment variables any way it likes.
    • Method Detail

      • getAvailableEnvironmentVariables

        java.util.Set<java.lang.String> getAvailableEnvironmentVariables()
        Get the list of available environment variables.
        a set of strings; each such string should be an acceptable argument to the method getEnvironmentVariable(String)
      • getEnvironmentVariable

        java.lang.String getEnvironmentVariable​(java.lang.String name)
        Get the value of a specific environment variable
        name - the name of the required environment variable
        the value of the named environment variable, or null if the variable is not defined. The method must not return null if the name is in the list of variables returned by the method getAvailableEnvironmentVariables()