Method Summary |
|
public static boolean | getBooleanValue(String name) Get the value of a boolean property.
Returns true if the property is equal, ignoring case,
to the string "true".
Returns false in all other cases (eg: "false", "yes", "1")
Parameters: name - The name of the property whose value is to be retrieved. |
public static Properties | getInstance() Return an instance of the current properties object. |
public static int | getIntValue(String name) Get the value of an integer property.
Parameters: name - The name of the property whose value is to be retrieved. |
public static long | getLongValue(String name) Get the value of a long property.
Parameters: name - The name of the property whose value is to be retrieved. |
public static String | getValue(String name) Returns the value of a property.
Parameters: name - The name of the property whose value is to be retrieved. |
public static SortedProperties | loadProperties(String propertyFile) Given a property file name, load the property file and return an object
representing the property values.
Parameters: propertyFile - The name of the property file to load. |
public static SortedProperties | loadProperties(String propertyFile, Properties def) Given a property file name, load the property file and return an object
representing the property values.
Parameters: propertyFile - The name of the property file to load. Parameters: def - Default property values, or null if there are no defaults. |
public static void | saveProperties() Save the current Wiki system properties to the filesystem. |
public static void | saveProperties(String propertyFile, SortedProperties properties, String comments) Save the specified property values to the filesystem. |
public static void | setBooleanValue(String name, boolean value) Set a new boolean value for the given property name. |
public static void | setIntValue(String name, int value) Sets a new integer value for the given property name. |
public static void | setValue(String name, String value) Sets a new value for the given property name. |