package edu.chl.proton.model;

/**
 * @author Stina Werme
 * Created by stinawerme on 01/05/17.
 */
public abstract class FileSystemEntity {

    private String name;

    private Folder parentFolder;


    protected String getName() {
        return name;
    }

    protected void setName(String name) {
        this.name = name;
    }

    protected String getPath() {
        return "Hej";
    }

    protected void setPath(String path) {

    }

    protected Folder getParentFolder() {
        return this.parentFolder;
    }

    protected void setParentFolder(Folder folder) {
        this.parentFolder = folder;
    }
}

@@ -373,75 +373,215 @@
     
-    return %22Hej%22;
+protected void setPath(String path) %7B%0A        if (this.parentFolder != null) %7B
 %0A    
-%7D%0A%0A
     
-protected void setPath(String path) %7B%0A
+    return this.parentFolder.getPath() + %22/%22 + this.name;%0A        %7D else %7B%0A            return %22/%22 + this.name;%0A        %7D
 %0A   

Implement getPath