org.apache.ctakes.utils.env
Class EnvironmentVariable

java.lang.Object
  extended by org.apache.ctakes.utils.env.EnvironmentVariable

public class EnvironmentVariable
extends java.lang.Object


Field Summary
static java.lang.String NOT_PRESENT
           
 
Constructor Summary
EnvironmentVariable()
           
 
Method Summary
static java.lang.String getEnv(java.lang.String name)
          Get the value of some variable in the full (os, user, java, ctakes) environment.
static java.lang.String getEnv(java.lang.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
 

Field Detail

NOT_PRESENT

public static final java.lang.String NOT_PRESENT
Constructor Detail

EnvironmentVariable

public EnvironmentVariable()
Method Detail

getEnv

public static java.lang.String getEnv(java.lang.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 name
context - -
Returns:
value for given name or NOT_PRESENT (null) if name is null or empty or not found.

getEnv

public static java.lang.String getEnv(java.lang.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.