Package jetbrains.mps.extapi.persistence
Class DefaultSourceRoot
- java.lang.Object
 - 
- jetbrains.mps.extapi.persistence.DefaultSourceRoot
 
 
- 
- All Implemented Interfaces:
 SourceRoot
public final class DefaultSourceRoot extends Object implements SourceRoot
Default source root which lives until thePathapi appears- Since:
 - 3.5
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultSourceRoot(String path, IFile contentRootDirectory) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IFilegetAbsolutePath()Now it is hard to resolve a path againstFileBasedModelRoot.getContentDirectory()because we still do not have a proper API.StringgetPath()Returns a path to the source root it is linked to.inthashCode()StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getAbsolutePath
@NotNull public IFile getAbsolutePath()
Description copied from interface:SourceRootNow it is hard to resolve a path againstFileBasedModelRoot.getContentDirectory()because we still do not have a proper API. Temporarily this method will replace the api. Afterwards there will be onlySourceRoot.getPath()method which will return some "Path" entity- Specified by:
 getAbsolutePathin interfaceSourceRoot
 
- 
getPath
@NotNull public String getPath()
Description copied from interface:SourceRootReturns a path to the source root it is linked to. Path can be absolute or relative to theFileBasedModelRoot.getContentDirectory()Currently the type isStringsince we do not have relative path classes in the API. [But soon enough it will be replaced FIXME AP] Until then the contract is to return a system-independent (UNIX separators) path.- Specified by:
 getPathin interfaceSourceRoot- Returns:
 - a system-independent (UNIX separators) path where the models sources lie
 
 
 - 
 
 -