Package jetbrains.mps.persistence
Class FilePerRootDataSourceFactory
- java.lang.Object
 - 
- jetbrains.mps.persistence.FilePerRootDataSourceFactory
 
 
- 
- All Implemented Interfaces:
 DataSourceFactoryFromName
public final class FilePerRootDataSourceFactory extends Object implements DataSourceFactoryFromName
- Since:
 - 27/12/16
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FilePerRootDataSourceFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourcecreate(SModelName modelName, SourceRoot sourceRoot)This is invoked in order to create a new model from scratch given only its name.DataSourceTypegetType()StringtoString() 
 - 
 
- 
- 
Method Detail
- 
create
@NotNull public DataSource create(@NotNull SModelName modelName, @NotNull SourceRoot sourceRoot)
Description copied from interface:DataSourceFactoryFromNameThis is invoked in order to create a new model from scratch given only its name. For instance it might be useful if we want to put a model accordingly to it's fq name or if we want to provide some specific extension of the new model file (if we are based on file system).- Specified by:
 createin interfaceDataSourceFactoryFromName- Parameters:
 modelName- new model namesourceRoot- source root which will host the newly created model- Returns:
 - new data source which points to location generated by this method from the model name
 
 
- 
getType
@NotNull public DataSourceType getType()
- Specified by:
 getTypein interfaceDataSourceFactoryFromName- Returns:
 - the type of the created data sources
 
 
 - 
 
 -