net.thucydides.core.util
Class SystemEnvironmentVariables

Package class diagram package SystemEnvironmentVariables
java.lang.Object
  extended by net.thucydides.core.util.SystemEnvironmentVariables
All Implemented Interfaces:
EnvironmentVariables

public class SystemEnvironmentVariables
extends Object
implements EnvironmentVariables

Return system environment variable values.


Constructor Summary
SystemEnvironmentVariables()
           
 
Method Summary
 void clearProperty(String name)
           
 String getProperty(Enum<?> property)
           
 String getProperty(Enum<?> property, String defaultValue)
           
 String getProperty(String name)
           
 String getProperty(String name, String defaultValue)
           
 Boolean getPropertyAsBoolean(Enum<?> property, boolean defaultValue)
           
 Boolean getPropertyAsBoolean(String name, boolean defaultValue)
           
 Integer getPropertyAsInteger(Enum<?> property, Integer defaultValue)
           
 Integer getPropertyAsInteger(String property, Integer defaultValue)
           
 String getValue(Enum<?> property)
           
 String getValue(Enum<?> property, String defaultValue)
           
 String getValue(String name)
           
 String getValue(String name, String defaultValue)
           
 void setProperty(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemEnvironmentVariables

public SystemEnvironmentVariables()
Method Detail

getValue

public String getValue(String name)
Specified by:
getValue in interface EnvironmentVariables

getValue

public String getValue(Enum<?> property)
Specified by:
getValue in interface EnvironmentVariables

getValue

public String getValue(String name,
                       String defaultValue)
Specified by:
getValue in interface EnvironmentVariables

getValue

public String getValue(Enum<?> property,
                       String defaultValue)
Specified by:
getValue in interface EnvironmentVariables

getPropertyAsInteger

public Integer getPropertyAsInteger(String property,
                                    Integer defaultValue)
Specified by:
getPropertyAsInteger in interface EnvironmentVariables

getPropertyAsInteger

public Integer getPropertyAsInteger(Enum<?> property,
                                    Integer defaultValue)
Specified by:
getPropertyAsInteger in interface EnvironmentVariables

getPropertyAsBoolean

public Boolean getPropertyAsBoolean(String name,
                                    boolean defaultValue)
Specified by:
getPropertyAsBoolean in interface EnvironmentVariables

getPropertyAsBoolean

public Boolean getPropertyAsBoolean(Enum<?> property,
                                    boolean defaultValue)
Specified by:
getPropertyAsBoolean in interface EnvironmentVariables

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface EnvironmentVariables

getProperty

public String getProperty(Enum<?> property)
Specified by:
getProperty in interface EnvironmentVariables

getProperty

public String getProperty(String name,
                          String defaultValue)
Specified by:
getProperty in interface EnvironmentVariables

getProperty

public String getProperty(Enum<?> property,
                          String defaultValue)
Specified by:
getProperty in interface EnvironmentVariables

setProperty

public void setProperty(String name,
                        String value)
Specified by:
setProperty in interface EnvironmentVariables

clearProperty

public void clearProperty(String name)
Specified by:
clearProperty in interface EnvironmentVariables


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.