reformat
[jSite2.git] / src / net / pterodactylus / jsite / project / ProjectFile.java
index 3e170fd..7f9cc2d 100644 (file)
  * 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 <code>null</code> 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<ProjectFile> 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 <code>true</code> if this file is a directory,