add method to restore content type
[jSite2.git] / src / net / pterodactylus / jsite / project / Entry.java
index 9b3c521..52643be 100644 (file)
@@ -39,6 +39,22 @@ public interface Entry {
        public boolean isVirtual();
 
        /**
+        * Returns whether this entry still has its default settings.
+        * 
+        * @return <code>true</code> if this entry has not been changed by the
+        *         user, <code>false</code> otherwise
+        */
+       public boolean isDefault();
+
+       /**
+        * Returns whether the content type setting is still the default.
+        * 
+        * @return <code>true</code> if the content type has not been changed by
+        *         the user, <code>false</code> otherwise
+        */
+       public boolean isDefaultContentType();
+
+       /**
         * Returns the name of the file. The name can contain multiple path
         * components, separated by the platform’s {@link File#separatorChar}. It
         * will never start with a separator, though.
@@ -89,4 +105,9 @@ public interface Entry {
         */
        public void setContentType(String contentType);
 
+       /**
+        * Restores the default content type.
+        */
+       public void restoreDefaultContentType();
+
 }