public class UberProperties
extends java.util.Properties
default
properties object.Modifier and Type | Field and Description |
---|---|
static UberProperties |
DEFAULT_PROPERTIES
Loads "GlobalParams.paramFileRoot() + GlobalParams.DEFAULT_PARAM_FILE"; also loads "GlobalParams.paramFileRoot() +
GlobalParams.ABSOLUTE_PATHS_PARAM_FILE" if GlobalParams.RELATIVE_PATHS is set to false.
|
(package private) static org.apache.log4j.Logger |
logger |
private static long |
serialVersionUID |
Constructor and Description |
---|
UberProperties()
Creates an empty property list with no default values.
|
UberProperties(java.util.Properties defaults)
Creates an empty property list with the specified defaults.
|
UberProperties(java.util.Properties defaults,
java.lang.String fileName)
Creates a property list from the specified file, with the specified defaults.
|
UberProperties(java.lang.String fileName)
Creates a property list from the specified file, with no default values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanProperty(java.lang.String key)
Returns the property with the specified key in this property list.
|
double |
getDoubleProperty(java.lang.String key)
Returns the property with the specified key in this property list.
|
protected static UberProperties |
getHardCodedProperties()
Hard coded version of default params.
|
int |
getIntProperty(java.lang.String key)
Returns the property with the specified key in this property list.
|
private static java.lang.String |
getLocalDirName(java.lang.Class<UberProperties> classOfInterest) |
java.lang.String |
getProperty(java.lang.String key)
Returns the String of the given property, with leading and trailing spaces trimmed off.
|
static java.util.Properties |
loadPropertiesFile(java.lang.String propertyFilePath) |
void |
logInit()
initialize log4j logging
|
void |
setDefaults(java.util.Properties defaults)
Sets the default properties.
|
java.lang.String |
toString()
Returns each key/value pair on its own line, in alphabetical order.
|
getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public static final UberProperties DEFAULT_PROPERTIES
static org.apache.log4j.Logger logger
private static final long serialVersionUID
public UberProperties()
public UberProperties(java.util.Properties defaults)
public UberProperties(java.util.Properties defaults, java.lang.String fileName)
public UberProperties(java.lang.String fileName)
protected static UberProperties getHardCodedProperties()
private static java.lang.String getLocalDirName(java.lang.Class<UberProperties> classOfInterest)
public static java.util.Properties loadPropertiesFile(java.lang.String propertyFilePath)
public boolean getBooleanProperty(java.lang.String key)
public double getDoubleProperty(java.lang.String key)
public int getIntProperty(java.lang.String key)
public java.lang.String getProperty(java.lang.String key)
getProperty
in class java.util.Properties
public void logInit()
public void setDefaults(java.util.Properties defaults)
public java.lang.String toString()
toString
in class java.util.Hashtable<java.lang.Object,java.lang.Object>