This object is used to get properties from files that describe the attributes of the system.
There are three types of properties files.
The System properties file is called System.properties and contains the default properties for every application on the server.
Application property files follow the naming convention [application name].properties. They contain default properties for particular applications which override the System properties
Unit property files follow the naming convention [application name]_[unitname].properties. They contain default properties for particular units (html pages) for particular application. These override both the application properties and the System properties.
getBooleanProperty(String key) This method will return an boolean value from the properties object.
true if the property is found and is equal to : True,Yes,T,Y.
public boolean
getBooleanProperty(String key, boolean defaultProperty) This method will return an boolean value from the properties object.
true if the property is found and is equal to : True,Yes,T,Y.
getThemeBooleanProperty(String theme, String key) This method will return an boolean value from the properties object using the specified theme.
public boolean
getThemeBooleanProperty(String theme, String key, boolean defaultProperty) This method will return an boolean value from the properties object using the specified theme.
getThemeColorProperty(String theme, String key) This method will return an Color value from the properties object using the specified theme.
public int
getThemeIntProperty(String theme, String key) This method will return an integer value from the properties object using the specified theme.
public int
getThemeIntProperty(String theme, String key, int defaultVal) This method will return an integer value from the properties object using the specified theme.
mergeSystemProperties(String inFile, String propsDir) Merges properties from the property file specified in inFile into the System.properties file in the propsDir.
public static void
mergeSystemProperties(String inFile) Merges properties from the property file specified in inFile into the System.properties file.
public boolean getBooleanProperty(String key)(Code)
This method will return an boolean value from the properties object.
true if the property is found and is equal to : True,Yes,T,Y. It will return false otherwise. Parameters: key - The property to search for.
getBooleanProperty
public boolean getBooleanProperty(String key, boolean defaultProperty)(Code)
This method will return an boolean value from the properties object.
true if the property is found and is equal to : True,Yes,T,Y. It will return false otherwise. Parameters: key - The property to search for. Parameters: defaultProperty - The property to return if no property is found.
This method will return an color value from the properties object.
The property or null if it is not found or the property is not a color. Parameters: key - The property to search for.
This method will return an integer value from the properties object.
The property or -1 if it is not found or the property is not an integer. Parameters: key - The property to search for.
This method will return a value from the properties object.
The property. Parameters: key - The property to search for. Parameters: def - The default property to return if the key is not found.
This method will return an boolean value from the properties object using the specified theme. If the theme is null or not found, the default property will be returned.
true if the property is found and is equal to : True,Yes,T,Y. It will return false otherwise. Parameters: theme - The theme of the property to search for. Parameters: key - The property to search for.
getThemeBooleanProperty
public boolean getThemeBooleanProperty(String theme, String key, boolean defaultProperty)(Code)
This method will return an boolean value from the properties object using the specified theme. If the theme is null or not found, the default property will be returned.
true if the property is found and is equal to : True,Yes,T,Y. It will return false otherwise. Parameters: theme - The theme of the property to search for. Parameters: key - The property to search for. Parameters: defaultProperty - The default value if the property is not found
This method will return an Color value from the properties object using the specified theme. If the theme is null or not found, the default property will be returned..
The property or null if it is not found or the property is not a color. Parameters: theme - The theme of the property to search for. Parameters: key - The property to search for.
This method will return an integer value from the properties object using the specified theme. If the theme is null or not found, the default property will be returned..
The property or -1 if it is not found or the property is not an integer. Parameters: theme - The theme of the property to search for. Parameters: key - The property to search for.
getThemeIntProperty
public int getThemeIntProperty(String theme, String key, int defaultVal)(Code)
This method will return an integer value from the properties object using the specified theme. If the theme is null or not found, the default property will be returned..
The property or -1 if it is not found or the property is not an integer. Parameters: theme - The theme of the property to search for. Parameters: key - The property to search for. Parameters: defaultVal - the value to return if non is found in the property file
This method will return a value from the properties object using the specified theme. If the theme is null or not found, the default property will be returned.
The property or null if it is not found. Parameters: theme - The theme of the property to search for. Parameters: key - The property to search for.
This method will return a value from the properties object using the specified theme. If the theme is null or not found, the default property will be returned.
The property or null if it is not found. Parameters: theme - The theme of the property to search for. Parameters: key - The property to search for. Parameters: defaultVal - The default value for the property
Merges properties from the property file specified in inFile into the System.properties file in the propsDir. Merging consists of adding any new properties from the inFile that aren't currently in the System.properties.
Parameters: inFile - The properties file to merge into the System.properties Parameters: propsDir - The directory where the System.properties file can be found or null to use the default throws: IOException -
Merges properties from the property file specified in inFile into the System.properties file. Merging consists of adding any new properties from the inFile that aren't currently in the System.properties.
Parameters: inFile - The properties file to merge into the System.properties throws: IOException -
Save changes to an application.properties file. Pass the directory where the System.properties are located. The passed hashtable should contain string key/value pairs with the items to be added to or modified in the property file.
Save changes to an application.properties file. The passed hashtable should contain string key/value pairs with the items to be added to or modified in the property file.
Save changes to the System.properties file. Pass the directory where the System.properties are located. The passed hashtable should contain string key/value pairs with the items to be added to or modified in the property file.
Save changes to the System.properties file. The passed hashtable should contain string key/value pairs with the items to be added to or modified in the property file.