net.thucydides.core
Class ThucydidesSystemProperties

Package class diagram package ThucydidesSystemProperties
java.lang.Object
  extended by net.thucydides.core.ThucydidesSystemProperties

public class ThucydidesSystemProperties
extends Object

Convenience class used to get and set Thucydides system properties.


Constructor Summary
ThucydidesSystemProperties()
           
 
Method Summary
 Boolean getBooleanValue(ThucydidesSystemProperty property, boolean defaultValue)
           
 Integer getIntegerValue(ThucydidesSystemProperty property, Integer defaultValue)
           
static ThucydidesSystemProperties getProperties()
           
 String getValue(ThucydidesSystemProperty property)
           
 String getValue(ThucydidesSystemProperty property, String defaultValue)
           
 boolean isDefined(ThucydidesSystemProperty property)
          Determines whether a Thucydides system property has been set or not.
 boolean isEmpty(ThucydidesSystemProperty property)
          Determines whether or not a Thucydides system property has been set to a non-empty value.
 void setValue(ThucydidesSystemProperty property, String value)
          Sets a Thucydides system property to s specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThucydidesSystemProperties

public ThucydidesSystemProperties()
Method Detail

getProperties

public static ThucydidesSystemProperties getProperties()

getValue

public String getValue(ThucydidesSystemProperty property)

isDefined

public boolean isDefined(ThucydidesSystemProperty property)
Determines whether a Thucydides system property has been set or not.


getValue

public String getValue(ThucydidesSystemProperty property,
                       String defaultValue)

isEmpty

public boolean isEmpty(ThucydidesSystemProperty property)
Determines whether or not a Thucydides system property has been set to a non-empty value.


setValue

public void setValue(ThucydidesSystemProperty property,
                     String value)
Sets a Thucydides system property to s specified value.


getIntegerValue

public Integer getIntegerValue(ThucydidesSystemProperty property,
                               Integer defaultValue)

getBooleanValue

public Boolean getBooleanValue(ThucydidesSystemProperty property,
                               boolean defaultValue)


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