From bd4e8ef0e1693046d57b8562e734e6dacf3381d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 28 May 2008 09:01:20 +0200 Subject: [PATCH] add method to restore content type --- src/net/pterodactylus/jsite/project/AbstractEntry.java | 7 +++++++ src/net/pterodactylus/jsite/project/Entry.java | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/src/net/pterodactylus/jsite/project/AbstractEntry.java b/src/net/pterodactylus/jsite/project/AbstractEntry.java index 6e0c9d4..ff04760 100644 --- a/src/net/pterodactylus/jsite/project/AbstractEntry.java +++ b/src/net/pterodactylus/jsite/project/AbstractEntry.java @@ -160,4 +160,11 @@ public abstract class AbstractEntry extends AbstractBean implements Entry { this.defaultContentType = defaultContentType; } + /** + * {@inheritDoc} + */ + public void restoreDefaultContentType() { + this.contentType = defaultContentType; + } + } diff --git a/src/net/pterodactylus/jsite/project/Entry.java b/src/net/pterodactylus/jsite/project/Entry.java index 86b5904..52643be 100644 --- a/src/net/pterodactylus/jsite/project/Entry.java +++ b/src/net/pterodactylus/jsite/project/Entry.java @@ -105,4 +105,9 @@ public interface Entry { */ public void setContentType(String contentType); + /** + * Restores the default content type. + */ + public void restoreDefaultContentType(); + } -- 2.7.4