* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+
package net.pterodactylus.jsite.project;
import java.util.List;
* Abstraction for a that exists on the machine {@link Core} is being run on.
* This abstraction layer exists to make it possible to run jSite as a daemon
* and only connect to it via network.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public interface ProjectFile {
/**
* Returns the name of the file.
- *
+ *
* @return The name of the file
*/
public String getName();
/**
* Returns all parent files of this file. This file is the last file in the
* returned list.
- *
+ *
* @return A list of all parents of this file and this file itself
*/
public List<ProjectFile> getParents();
/**
* Returns whether this file is a directory.
- *
+ *
* @return <code>true</code> if this file is a directory,
* <code>false</code> otherwise
*/
/**
* Returns whether this file is a file (as opposed to being a directory).
- *
+ *
* @return <code>true</code> if this file is a file, <code>false</code>
* otherwise
*/
/**
* Returns whether this file is hidden.
- *
+ *
* @return <code>true</code> if this file is hidden
*/
public boolean isHidden();
/**
* If this file is a directory, returns all files in this directory.
- *
+ *
* @see #isDirectory()
* @return All files in this directory if this file is a directory, or
* <code>null</code> if this file is not a directory