junitx.ddtunit.util
Class DDTConfiguration

java.lang.Object
  extended by junitx.ddtunit.util.DDTConfiguration

public class DDTConfiguration
extends Object

Load configuration file and provide access to specified content in an instance of this class

Author:
jg

Field Summary
static String DDTUNIT_CONFIG_PROPERTIES
           
static String PROP_RESOURCE
           
 
Method Summary
 Locale getActiveLocale()
           
 Map<String,DDTDateFormat> getDateMap()
           
 int getHardCacheSize()
           
static DDTConfiguration getInstance()
           
 String getLog4jConfigResource()
           
 boolean isActiveAsserts()
           
 boolean isActiveParserValidation()
           
 boolean isActiveRunMonitor()
           
 boolean isActiveXmlValidation()
           
 boolean isSpecificationAssert()
           
 void load()
           
 void load(String resourceName)
           
 void setActiveAsserts(boolean assertSupport)
           
 void setActiveLocale(Locale activeLocale)
           
 void setActiveParserValidation(boolean parserValidationSupport)
           
 void setActiveRunMonitor(boolean activeRunMonitor)
           
 void setActiveXmlValidation(boolean activeXmlValidation)
           
 void setLog4jConfigResource(String log4jConfigResource)
           
 void setSpecificationAssert(boolean specificationAssert)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DDTUNIT_CONFIG_PROPERTIES

public static final String DDTUNIT_CONFIG_PROPERTIES
See Also:
Constant Field Values

PROP_RESOURCE

public static final String PROP_RESOURCE
See Also:
Constant Field Values
Method Detail

getInstance

public static DDTConfiguration getInstance()
Returns:
only one instance of config information

load

public void load()

load

public void load(String resourceName)

isActiveRunMonitor

public boolean isActiveRunMonitor()

getLog4jConfigResource

public String getLog4jConfigResource()

isActiveXmlValidation

public boolean isActiveXmlValidation()

getHardCacheSize

public int getHardCacheSize()

isActiveParserValidation

public boolean isActiveParserValidation()

setActiveParserValidation

public void setActiveParserValidation(boolean parserValidationSupport)

setActiveXmlValidation

public void setActiveXmlValidation(boolean activeXmlValidation)

isActiveAsserts

public boolean isActiveAsserts()

setActiveAsserts

public void setActiveAsserts(boolean assertSupport)

isSpecificationAssert

public boolean isSpecificationAssert()

setSpecificationAssert

public void setSpecificationAssert(boolean specificationAssert)

getActiveLocale

public Locale getActiveLocale()

setActiveRunMonitor

public void setActiveRunMonitor(boolean activeRunMonitor)

setLog4jConfigResource

public void setLog4jConfigResource(String log4jConfigResource)

setActiveLocale

public void setActiveLocale(Locale activeLocale)

getDateMap

public Map<String,DDTDateFormat> getDateMap()


Copyright © 2004-2011. All Rights Reserved.