add default insert flag
[jSite2.git] / src / net / pterodactylus / jsite / project / Entry.java
index 09d9f39..8f3783b 100644 (file)
@@ -30,6 +30,23 @@ import java.io.File;
 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 <code>true</code> if this entry is a virtual file entry,
+        *         <code>false</code> otherwise
+        */
+       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 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.