public class Properties
extends java.lang.Object
Constructor and Description |
---|
Properties() |
Modifier and Type | Method and Description |
---|---|
static int |
asInteger(java.lang.String propertyName,
int defaultValue)
Return propertyName as an integer, defaultValue used if not defined.
|
static java.lang.String |
getPropertyValue(java.lang.String propertyName) |
static boolean |
isOverrideSet(java.lang.String propertyName)
Return whether a particular override has been set to true.
|
static boolean |
isOverrideSetTo(java.lang.String propertyName,
boolean isTrue)
Return whether a particular override has been set to false.
|
public static boolean isOverrideSet(java.lang.String propertyName)
propertyName
- the property name for the override.public static boolean isOverrideSetTo(java.lang.String propertyName, boolean isTrue)
propertyName
- the property name for the override.isTrue
- true if the override should be true, false otherwise.public static int asInteger(java.lang.String propertyName, int defaultValue)
propertyName
- name of property.defaultValue
- integer to return if property not defined.public static java.lang.String getPropertyValue(java.lang.String propertyName)