org.loom.config
Class ConfigProperties

java.lang.Object
  extended by org.loom.config.ConfigProperties

public class ConfigProperties
extends java.lang.Object

Contains the contents of the loom-config.properties file in the classpath


Constructor Summary
ConfigProperties()
           
ConfigProperties(java.util.Properties properties)
           
 
Method Summary
 java.lang.String getDefaultCss(java.lang.Class<? extends AbstractHtmlTag> clazz, java.lang.String defaultCSS)
           
static ConfigProperties getInstance()
           
 java.lang.String getProperty(java.lang.String propertyKey, java.lang.String defaultValue)
           
 boolean getPropertyAsBoolean(java.lang.String propertyKey, boolean defaultValue)
           
 java.lang.Integer getPropertyAsInteger(java.lang.String propertyKey, java.lang.Integer defaultValue)
           
static void setInstance(ConfigProperties instance)
           
 void setProperty(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigProperties

public ConfigProperties()

ConfigProperties

public ConfigProperties(java.util.Properties properties)
Method Detail

getInstance

public static ConfigProperties getInstance()

setInstance

public static void setInstance(ConfigProperties instance)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)

getPropertyAsInteger

public java.lang.Integer getPropertyAsInteger(java.lang.String propertyKey,
                                              java.lang.Integer defaultValue)
Returns:
a configured property, as Integer

getPropertyAsBoolean

public boolean getPropertyAsBoolean(java.lang.String propertyKey,
                                    boolean defaultValue)
Returns:
a configured property, as boolean

getProperty

public java.lang.String getProperty(java.lang.String propertyKey,
                                    java.lang.String defaultValue)
Returns:
a configured property, as String

getDefaultCss

public java.lang.String getDefaultCss(java.lang.Class<? extends AbstractHtmlTag> clazz,
                                      java.lang.String defaultCSS)
Returns:
the default CSS value for the specified tag, defaultCSS if there is none