X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fproject%2FEntry.java;h=9b3c52126b0a878e9ee0b4a5881c59336722e905;hb=1b87930e43eb7d14068a21ed0b488f28cc6ce49b;hp=65f21104999c193a0291510dda4d1f3502309eda;hpb=2518cd10be541f7a5354adc0f6c6c1334b7b5691;p=jSite2.git
diff --git a/src/net/pterodactylus/jsite/project/Entry.java b/src/net/pterodactylus/jsite/project/Entry.java
index 65f2110..9b3c521 100644
--- a/src/net/pterodactylus/jsite/project/Entry.java
+++ b/src/net/pterodactylus/jsite/project/Entry.java
@@ -19,19 +19,29 @@
package net.pterodactylus.jsite.project;
+import java.io.File;
+
/**
- * A file is an entry in a directory. Its name can contain multiple components
- * (separated by a slash, â/â).
+ * A file is an entry in a directory. Its name can contain multiple components,
+ * separated by the platformâs {@link File#separatorChar}.
*
* @author David âBombeâ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
public interface Entry {
/**
+ * Returns whether this entry denotes a virtual file. A virtual file entry
+ * is a file entry that does not have a corresponding file on the disk.
+ *
+ * @return true
if this entry is a virtual file entry,
+ * false
otherwise
+ */
+ public boolean isVirtual();
+
+ /**
* Returns the name of the file. The name can contain multiple path
- * components, separated by a slash (â/â). It will never start with a slash,
- * though.
+ * components, separated by the platformâs {@link File#separatorChar}. It
+ * will never start with a separator, though.
*
* @return The name of the file
*/
@@ -46,6 +56,23 @@ public interface Entry {
public void setName(String name);
/**
+ * Returns whether this file should be inserted.
+ *
+ * @return true
to insert the file, false
to
+ * skip it
+ */
+ public boolean isInsert();
+
+ /**
+ * Sets whether this file should be inserted.
+ *
+ * @param insert
+ * true
to insert the file, false
+ * to skip it
+ */
+ public void setInsert(boolean insert);
+
+ /**
* Returns the content type of the file. If the content type is
* null
, the node will auto-detect the content type based on
* the filename. The content type is given as a MIME type.