public abstract class PersistenceUtils
extends java.lang.Object
PersistentState objects| Constructor and Description | 
|---|
| PersistenceUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | fixMapContextFilePaths(PersistentState state,
                      java.io.File rootFolder)Adjust all file-system related values with  rootFolderas root folder. | 
| static java.util.Set<java.io.File> | getRelatedFiles(PersistentState state)Returns a list of all file-system related  state's
 values | 
| static java.util.Set<java.io.File> | relocateFiles(PersistentState state,
             java.util.Map<java.io.File,java.io.File> transformMapping,
             java.io.File rootFolder)
 Adjust all Files in  statebased ontransformMapping. | 
public static void fixMapContextFilePaths(PersistentState state, java.io.File rootFolder) throws PersistenceException
rootFolder
 as root folder.state - rootFolder - PersistenceExceptionpublic static java.util.Set<java.io.File> getRelatedFiles(PersistentState state) throws PersistenceException
state's
 valuesstate - PersistenceExceptionpublic static java.util.Set<java.io.File> relocateFiles(PersistentState state, java.util.Map<java.io.File,java.io.File> transformMapping, java.io.File rootFolder) throws PersistenceException
 Adjust all Files in state based on
 transformMapping.
 
 Also, optionally. make final file path relatives to
 rootFolder if it's provided. (only in file which
 rootFolder is ancestor of)
 
All filenames will use unix-like filesystem separator character
state - to adjusttransformMapping - mapping with source files as key and target as valuerootFolder - base folder for relative paths (could be null)state files with no matching in
         transformMappingPersistenceException