Class SettingsPersistenceUtil
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.util.beans.SettingsPersistenceUtil
-
public final class SettingsPersistenceUtil extends java.lang.Object
Utility methods to persist settings of the application.- Since:
- 6.1.0
- Author:
- Clément Fournier
- See Also:
SimpleBeanModelNode
,SettingsOwner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SettingsPersistenceUtil.PersistentProperty
Tags the *getter* of a property as suitable for persistence.static interface
SettingsPersistenceUtil.PersistentSequence
Tags the getter of a collection for persistence.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
persistProperties(SettingsOwner root, java.io.File file)
Save properties of this object and descendants into the given file.static void
restoreProperties(SettingsOwner root, java.io.File file)
Restores properties contained in the file into the given object.
-
-
-
Method Detail
-
restoreProperties
public static void restoreProperties(SettingsOwner root, java.io.File file)
Restores properties contained in the file into the given object.- Parameters:
root
- Root of the hierarchyfile
- Properties file
-
persistProperties
public static void persistProperties(SettingsOwner root, java.io.File file) throws java.io.IOException
Save properties of this object and descendants into the given file.- Parameters:
root
- Root of the hierarchyfile
- Properties file- Throws:
java.io.IOException
-
-