|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.setting.PropertyFileProvider
public class PropertyFileProvider
Implementation of a setting provider that supports access to property files. Property files contain lines of the form
| Constructor Summary | |
|---|---|
PropertyFileProvider()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears all property settings. |
java.lang.String |
getFileHeader()
Gets the property file header. |
java.util.Properties |
getProperties()
Gets the table of all properties. |
java.lang.String |
getPropertyResourceName()
Gets the property file name. |
java.net.URL |
getPropertyResourceUrl()
Gets the URL of the property resource. |
java.lang.Object |
getSetting(java.lang.String name)
Gets a setting value. |
boolean |
isMandatory()
Gets the mandatory flag. |
boolean |
isReadonly()
Gets the readonly flag. |
boolean |
isSaveExistingPropertiesOnly()
Gets the flag to save only properties that already exist in the property file. |
boolean |
loadSettings()
Loads the settings. |
boolean |
saveSettings()
Saves the settings. |
void |
setFileHeader(java.lang.String fileHeader)
Sets the property file header. |
void |
setMandatory(boolean mandatory)
Sets the mandatory flag. |
void |
setProperties(java.util.Properties properties)
Sets the table of all properties. |
void |
setPropertyResourceName(java.lang.String propertyResourceName)
Sets the property file name. |
void |
setReadonly(boolean readonly)
Sets the readonly flag. |
void |
setSaveExistingPropertiesOnly(boolean saveExistingPropertiesOnly)
Sets the flag to save only properties that already exist in the property file. |
boolean |
setSetting(java.lang.String name,
java.lang.Object value)
Sets a setting. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyFileProvider()
| Method Detail |
|---|
public void clear()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getPropertyResourceName()
public void setPropertyResourceName(java.lang.String propertyResourceName)
public java.net.URL getPropertyResourceUrl()
public java.lang.String getFileHeader()
public void setFileHeader(java.lang.String fileHeader)
public java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
public boolean isReadonly()
public void setReadonly(boolean readonly)
public boolean isMandatory()
public void setMandatory(boolean mandatory)
public boolean isSaveExistingPropertiesOnly()
public void setSaveExistingPropertiesOnly(boolean saveExistingPropertiesOnly)
public java.lang.Object getSetting(java.lang.String name)
getSetting in interface SettingProvidername - Name of the setting
public boolean setSetting(java.lang.String name,
java.lang.Object value)
saveSettings() in order to write the settings
back to the property file.
setSetting in interface SettingProvidername - Name of the settingvalue - Value of the setting
public boolean loadSettings()
loadSettings in interface SettingProviderpublic boolean saveSettings()
setSetting(java.lang.String, java.lang.Object) is called.
In this case, this method will do nothing and should return true.
saveSettings in interface SettingProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||