org.apache.ctakes.utils.env
Class EnvironmentVariable
java.lang.Object
org.apache.ctakes.utils.env.EnvironmentVariable
public class EnvironmentVariable
- extends Object
Method Summary |
static String |
getEnv(String name)
Get the value of some variable in the full (os, user, java, ctakes) environment. |
static String |
getEnv(String name,
org.apache.uima.UimaContext context)
Get the value of some variable in the full (os, user, java, ctakes) environment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOT_PRESENT
public static final String NOT_PRESENT
EnvironmentVariable
public EnvironmentVariable()
getEnv
public static String getEnv(String name,
org.apache.uima.UimaContext context)
- Get the value of some variable in the full (os, user, java, ctakes) environment.
Will attempt to get it from System Properties, then Environment, then uima context.
- Parameters:
name
- some variable namecontext
- -
- Returns:
- value for given name or
NOT_PRESENT
(null) if name is null or empty or not found.
getEnv
public static String getEnv(String name)
- Get the value of some variable in the full (os, user, java, ctakes) environment.
Will attempt to get it from System Properties, then Environment.
- Parameters:
name
- some variable name
- Returns:
- value for given name or
NOT_PRESENT
(null) if name is null or empty or not found.
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.