public class PropertyUtil
extends java.lang.Object
Constructor and Description |
---|
PropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBooleanProperty(HasProperties props,
java.lang.String prop,
boolean defValue) |
static boolean |
getBooleanProperty(java.util.Properties props,
java.lang.String prop,
boolean defValue) |
static int |
getIntProperty(HasProperties props,
java.lang.String prop,
int defValue) |
static int |
getIntProperty(java.util.Properties props,
java.lang.String prop,
int defValue) |
static java.lang.Object |
getProperty(HasProperties props,
java.lang.String prop)
Gets a System Property from the SKD System Properties (remember, don't
pass skd.
|
static java.lang.Object |
getProperty(HasProperties props,
java.lang.String prop,
java.lang.Object def) |
static java.lang.Object |
getProperty(java.util.Properties props,
java.lang.String prop) |
static java.lang.Object |
getProperty(java.util.Properties props,
java.lang.String prop,
java.lang.Object def) |
static boolean |
toBoolean(java.lang.Object val,
boolean defValue) |
static int |
toInt(java.lang.Object val,
int defValue) |
public static java.lang.Object getProperty(HasProperties props, java.lang.String prop)
prop
- public static java.lang.Object getProperty(java.util.Properties props, java.lang.String prop)
public static java.lang.Object getProperty(HasProperties props, java.lang.String prop, java.lang.Object def)
public static java.lang.Object getProperty(java.util.Properties props, java.lang.String prop, java.lang.Object def)
public static int getIntProperty(HasProperties props, java.lang.String prop, int defValue)
public static int getIntProperty(java.util.Properties props, java.lang.String prop, int defValue)
public static int toInt(java.lang.Object val, int defValue)
public static boolean getBooleanProperty(HasProperties props, java.lang.String prop, boolean defValue)
public static boolean getBooleanProperty(java.util.Properties props, java.lang.String prop, boolean defValue)
public static boolean toBoolean(java.lang.Object val, boolean defValue)