X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fproject%2FAbstractEntry.java;h=4f6e6ed8c8225e02ffcbfab15f542d50efc4923a;hb=c647e3c2d780c95c1668068a86b7dc29536adf8d;hp=6a726c630bed078349b0b553504882c2f6f4825c;hpb=ed3c99a566139d0022f78e85d61a63a3876e1725;p=jSite2.git
diff --git a/src/net/pterodactylus/jsite/project/AbstractEntry.java b/src/net/pterodactylus/jsite/project/AbstractEntry.java
index 6a726c6..4f6e6ed 100644
--- a/src/net/pterodactylus/jsite/project/AbstractEntry.java
+++ b/src/net/pterodactylus/jsite/project/AbstractEntry.java
@@ -25,7 +25,6 @@ import net.pterodactylus.util.beans.AbstractBean;
* Abstract base implementation of a {@link Entry}.
*
* @author David âBombeâ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
public abstract class AbstractEntry extends AbstractBean implements Entry {
@@ -38,6 +37,9 @@ public abstract class AbstractEntry extends AbstractBean implements Entry {
/** The name of the âcontent typeâ property. */
public static final String PROPERTY_CONTENT_TYPE = "contentType";
+ /** Whether this entry is virtual. */
+ private final boolean virtual;
+
/** The name of the file. */
private String name;
@@ -48,6 +50,24 @@ public abstract class AbstractEntry extends AbstractBean implements Entry {
private String contentType;
/**
+ * Creates a new entry.
+ *
+ * @param virtual
+ * true
if this entry is virtual,
+ * false
otherwise
+ */
+ protected AbstractEntry(boolean virtual) {
+ this.virtual = virtual;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isVirtual() {
+ return virtual;
+ }
+
+ /**
* {@inheritDoc}
*/
public String getName() {