X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fproject%2FAbstractEntry.java;h=4f6e6ed8c8225e02ffcbfab15f542d50efc4923a;hb=95caf3bdb2b7946e4f20a45025f730dd47c5985c;hp=5c3c3bd3a428a31221bb98489a4c20d841bd9ca0;hpb=dcab7505473d0a4f779b4199eba4e201c4923df6;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/project/AbstractEntry.java b/src/net/pterodactylus/jsite/project/AbstractEntry.java index 5c3c3bd..4f6e6ed 100644 --- a/src/net/pterodactylus/jsite/project/AbstractEntry.java +++ b/src/net/pterodactylus/jsite/project/AbstractEntry.java @@ -37,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; @@ -47,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() {