Interface SourceRoot

  • All Known Implementing Classes:
    DefaultSourceRoot

    public interface SourceRoot
    A unit to build up the file model root. Has one file path -- the root of the model sources. Many models may lie within one SourceRoot [Typically it is a directory which contains models] AP Currently it does not store a reference to the enclosing ModelRoot and probably it is for the best.
    Since:
    3.5
    • Method Detail

      • getPath

        @NotNull
        String getPath()
        Returns a path to the source root it is linked to. Path can be absolute or relative to the FileBasedModelRoot.getContentDirectory() Currently the type is String since 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.
        Returns:
        a system-independent (UNIX separators) path where the models sources lie