Class FilePerRootFormatUtil
- java.lang.Object
 - 
- jetbrains.mps.smodel.persistence.def.FilePerRootFormatUtil
 
 
- 
public class FilePerRootFormatUtil extends Object
evgeny, 6/3/13 
- 
- 
Constructor Summary
Constructors Constructor Description FilePerRootFormatUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intactualPersistenceVersion(int desiredPersistenceVersion)static Map<SNodeId,String>getStreamNames(Iterable<SNode> roots)static SModelHeaderloadDescriptor(MultiStreamDataSource dataSource)static ModelLoadResultreadModel(SModelHeader header, MultiStreamDataSource dataSource, ModelLoadingState targetState)static booleansaveModel(SModel modelData, MultiStreamDataSource source, int persistenceVersion)returns true if the content should be reloaded from storage after save 
 - 
 
- 
- 
Method Detail
- 
loadDescriptor
public static SModelHeader loadDescriptor(MultiStreamDataSource dataSource) throws ModelReadException
- Throws:
 ModelReadException
 
- 
readModel
public static ModelLoadResult readModel(SModelHeader header, MultiStreamDataSource dataSource, ModelLoadingState targetState) throws ModelReadException
- Throws:
 ModelReadException
 
- 
actualPersistenceVersion
public static int actualPersistenceVersion(int desiredPersistenceVersion)
 
- 
saveModel
public static boolean saveModel(SModel modelData, MultiStreamDataSource source, int persistenceVersion) throws IOException
returns true if the content should be reloaded from storage after save- Throws:
 IOException
 
 - 
 
 -