org.apache.ctakes.utils.env
Class EnvironmentVariable

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

public class EnvironmentVariable
extends Object


Field Summary
static String NOT_PRESENT
           
 
Constructor Summary
EnvironmentVariable()
           
 
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
 

Field Detail

NOT_PRESENT

public static final String NOT_PRESENT
Constructor Detail

EnvironmentVariable

public EnvironmentVariable()
Method Detail

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 name
context - -
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.