net.aerith.misao.io
Interface Folder

All Known Implementing Classes:
MemoryFolder, FileFolder

public interface Folder

The Folder is an interface of a folder on the virtual file system.


Method Summary
 boolean exists()
          Returns true if this folder really exists.
 Folder getFolder(java.lang.String name)
          Gets the sub folder.
 java.util.Vector getHierarchy()
          Gets the folder hierarchy.
 java.lang.String getID()
          Gets the ID of this folder.
 java.lang.String getName()
          Gets the name of this folder.
 boolean isFolder()
          Returns true if this folder is a real folder.
 Folder[] list()
          Gets the list of sub folders.
 java.lang.String toString()
          Returns a string representation of the state of this object, for debugging use.
 

Method Detail

getHierarchy

public java.util.Vector getHierarchy()
Gets the folder hierarchy.
Returns:
the folder hierarchy.

getID

public java.lang.String getID()
Gets the ID of this folder.
Returns:
the ID of this folder.

getName

public java.lang.String getName()
Gets the name of this folder.
Returns:
the name of this folder.

getFolder

public Folder getFolder(java.lang.String name)
Gets the sub folder.
Parameters:
name - the name of the sub folder.
Returns:
the sub folder.

isFolder

public boolean isFolder()
Returns true if this folder is a real folder.
Returns:
true if this folder is a real folder.

exists

public boolean exists()
Returns true if this folder really exists.
Returns:
true if this folder really exists.

list

public Folder[] list()
Gets the list of sub folders.
Returns:
the list of sub folders.

toString

public java.lang.String toString()
Returns a string representation of the state of this object, for debugging use.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the state of this object.