Package jetbrains.mps.extapi.model
Interface CustomPersistenceLoadFacility
- 
public interface CustomPersistenceLoadFacilityMain purpose of this interface is to be passed to the constructor of theCustomPersistenceSModelBase. The workflow is to create the facility, read the header with #readHeader and then pass the header and itsel to the constructor of the CustomPersistenceSModelBase. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelFactorygetModelFactory()DataSourcegetSource()SModelSimpleHeaderreadHeader()SModelDatareadModel(SModelSimpleHeader header)voidwriteModel(SModelSimpleHeader header, SModelData modelData) 
 - 
 
- 
- 
Method Detail
- 
getModelFactory
@NotNull ModelFactory getModelFactory()
- Returns:
 - the model factory for which this instance reads/writes model data
 
 
- 
getSource
@NotNull DataSource getSource()
- Returns:
 - the data source which corresponds to the model entity this facility serves
 
 
- 
readHeader
@NotNull SModelSimpleHeader readHeader() throws ModelLoadException
- Throws:
 ModelLoadException
 
- 
readModel
@NotNull SModelData readModel(@NotNull SModelSimpleHeader header) throws ModelLoadException
- Throws:
 ModelLoadException
 
- 
writeModel
void writeModel(@NotNull SModelSimpleHeader header, @NotNull SModelData modelData) throws ModelSaveException
- Throws:
 ModelSaveException
 
 - 
 
 -