Class PropUtil
java.lang.Object
org.jvnet.mimepull.PropUtil
Utilities to make it easier to get property values.
Properties can be strings or type-specific value objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleangetBoolean(Object value, boolean def) Interpret the value object as a boolean, returning def if unable.static booleangetBooleanSystemProperty(String name, boolean def) Get a boolean valued System property.private static ObjectgetProp(Properties props, String name) Get the value of the specified property.
-
Constructor Details
-
PropUtil
private PropUtil()
-
-
Method Details
-
getBooleanSystemProperty
Get a boolean valued System property. -
getProp
Get the value of the specified property. If the "get" method returns null, use the getProperty method, which might cascade to a default Properties object. -
getBoolean
Interpret the value object as a boolean, returning def if unable.
-