Package jetbrains.mps.persistence
Class RegularFileDataSourceFactory
- java.lang.Object
 - 
- jetbrains.mps.persistence.RegularFileDataSourceFactory
 
 
- 
- All Implemented Interfaces:
 DataSourceFactoryFromName
public class RegularFileDataSourceFactory extends Object implements DataSourceFactoryFromName
Data source factory base for factories based on the different file extensions.- Since:
 - 27/12/16
 - See Also:
 FileExtensionDataSourceType
 
- 
- 
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.FileExtensionDataSourceTypegetType()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 FileExtensionDataSourceType getType()
- Specified by:
 getTypein interfaceDataSourceFactoryFromName- Returns:
 - the type of the created data sources
 
 
 - 
 
 -