Package net.sf.saxon.lib
Class StandardEnvironmentVariableResolver
java.lang.Object
net.sf.saxon.lib.StandardEnvironmentVariableResolver
- All Implemented Interfaces:
EnvironmentVariableResolver
public class StandardEnvironmentVariableResolver
extends Object
implements EnvironmentVariableResolver
Default implementation of the
EnvironmentVariableResolver
. This implementation
maps "environment variables" as defined in the XPath context to environment variables
delivered by Java using the System.getenv()
method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of available environment variables.getEnvironmentVariable
(String name) Get the value of a specific environment variable
-
Constructor Details
-
StandardEnvironmentVariableResolver
public StandardEnvironmentVariableResolver()
-
-
Method Details
-
getAvailableEnvironmentVariables
Get the list of available environment variables.- Specified by:
getAvailableEnvironmentVariables
in interfaceEnvironmentVariableResolver
- Returns:
- a set of strings; each such string should be an acceptable argument to the
method
getEnvironmentVariable(String)
-
getEnvironmentVariable
Get the value of a specific environment variable- Specified by:
getEnvironmentVariable
in interfaceEnvironmentVariableResolver
- Parameters:
name
- the name of the required environment variable- Returns:
- 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()
-