X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fproject%2FProjectFile.java;h=7f9cc2d1b6e07f3bfd5c158b46a5c7be407fab85;hb=9e5b4a6082659cf0c31affb37a1c5c64612a2f01;hp=3e170fd105b6629091872a8c7659f979f3c6a37c;hpb=082365513bbf73d143f2b796d8c23cf5ff4446dc;p=jSite2.git
diff --git a/src/net/pterodactylus/jsite/project/ProjectFile.java b/src/net/pterodactylus/jsite/project/ProjectFile.java
index 3e170fd..7f9cc2d 100644
--- a/src/net/pterodactylus/jsite/project/ProjectFile.java
+++ b/src/net/pterodactylus/jsite/project/ProjectFile.java
@@ -16,8 +16,10 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+
package net.pterodactylus.jsite.project;
+import java.io.File;
import java.util.List;
import net.pterodactylus.jsite.core.Core;
@@ -39,6 +41,14 @@ public interface ProjectFile {
public String getName();
/**
+ * Returns the parent of this project file.
+ *
+ * @return The parent of this project file, or null
if this
+ * project file does not have a parent
+ */
+ public ProjectFile getParent();
+
+ /**
* Returns all parent files of this file. This file is the last file in the
* returned list.
*
@@ -47,6 +57,23 @@ public interface ProjectFile {
public List getParents();
/**
+ * Returns the complete path of this file, without a leading
+ * {@link File#separator}.
+ *
+ * @return The complete path of this file
+ */
+ public String getCompletePath();
+
+ /**
+ * Returns the size of the file. If this file is a directory, the returned
+ * value is unspecified.
+ *
+ * @see File#length()
+ * @return The size of the file
+ */
+ public long getSize();
+
+ /**
* Returns whether this file is a directory.
*
* @return true
if this file is a directory,