public class PropUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
PropUtil() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
getBoolean(java.lang.Object value,
boolean def)
Interpret the value object as a boolean,
returning def if unable.
|
static boolean |
getBooleanProperty(java.util.Properties props,
java.lang.String name,
boolean def)
Get a boolean valued property.
|
static boolean |
getBooleanSessionProperty(Session session,
java.lang.String name,
boolean def)
Get a boolean valued property.
|
static boolean |
getBooleanSystemProperty(java.lang.String name,
boolean def)
Get a boolean valued System property.
|
private static int |
getInt(java.lang.Object value,
int def)
Interpret the value object as an integer,
returning def if unable.
|
static int |
getIntProperty(java.util.Properties props,
java.lang.String name,
int def)
Get an integer valued property.
|
static int |
getIntSessionProperty(Session session,
java.lang.String name,
int def)
Get an integer valued property.
|
private static java.lang.Object |
getProp(java.util.Properties props,
java.lang.String name)
Get the value of the specified property.
|
public static int getIntProperty(java.util.Properties props, java.lang.String name, int def)
public static boolean getBooleanProperty(java.util.Properties props, java.lang.String name, boolean def)
public static int getIntSessionProperty(Session session, java.lang.String name, int def)
public static boolean getBooleanSessionProperty(Session session, java.lang.String name, boolean def)
public static boolean getBooleanSystemProperty(java.lang.String name, boolean def)
private static java.lang.Object getProp(java.util.Properties props, java.lang.String name)
private static int getInt(java.lang.Object value, int def)
private static boolean getBoolean(java.lang.Object value, boolean def)