Package net.sf.saxon.lib
Class StandardEnvironmentVariableResolver
- java.lang.Object
-
- net.sf.saxon.lib.StandardEnvironmentVariableResolver
-
- All Implemented Interfaces:
EnvironmentVariableResolver
public class StandardEnvironmentVariableResolver extends java.lang.Object implements EnvironmentVariableResolver
Default implementation of theEnvironmentVariableResolver
. This implementation maps "environment variables" as defined in the XPath context to environment variables delivered by Java using theSystem.getenv()
method.
-
-
Constructor Summary
Constructors Constructor Description StandardEnvironmentVariableResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getAvailableEnvironmentVariables()
Get the list of available environment variables.java.lang.String
getEnvironmentVariable(java.lang.String name)
Get the value of a specific environment variable
-
-
-
Method Detail
-
getAvailableEnvironmentVariables
public java.util.Set<java.lang.String> 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
public java.lang.String getEnvironmentVariable(java.lang.String name)
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()
-
-