|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.entitymanager.logic.file.AbstractFile
se.entitymanager.logic.file.FileSystemsRootFile
public class FileSystemsRootFile
An AbstractFile that represents the root of all file systems.
Some Operating Systems may have more than one access point to file systems. This class has all of these access points as children.
| Field Summary | |
|---|---|
private java.util.List |
children
List of file systems. |
| Fields inherited from class se.entitymanager.logic.file.AbstractFile |
|---|
fileContents, lastModified, name, parent, readable, size, writeable |
| Constructor Summary | |
|---|---|
protected |
FileSystemsRootFile()
Constructs a FileSystemsRootFile. |
| Method Summary | |
|---|---|
protected void |
copy()
Copy this file. |
protected void |
delete()
Deletes this file. |
protected java.util.List |
getAllChildren()
Returns all direct child files. |
java.lang.String |
getFileContents()
Returns the contents of this file. |
protected AbstractFile |
getParent()
Returns the parent file. |
protected boolean |
isFolderish()
Returns whether this file is folderish. |
protected void |
paste()
Paste the file from the clipboard. |
protected void |
rename(java.lang.String newName)
Renames this file to newName. |
| Methods inherited from class se.entitymanager.logic.file.AbstractFile |
|---|
getLastModified, getName, getSize, isReadable, isWriteable, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.List children
| Constructor Detail |
|---|
protected FileSystemsRootFile()
FileSystemsRootFile.
| Method Detail |
|---|
protected java.util.List getAllChildren()
throws EntityNotFolderishException
AbstractFile
The objects within the list are instances derived from AbstractFile
getAllChildren in class AbstractFileEntityNotFolderishException - if this file is not folderishprotected AbstractFile getParent()
AbstractFile
getParent in class AbstractFileFileSystemsRootFile
protected void rename(java.lang.String newName)
throws EntityRenameFailedException
AbstractFilenewName.
rename in class AbstractFilenewName - new name of this file.
EntityRenameFailedException - if an error occurred
protected void delete()
throws EntityDeletionFailedException
AbstractFile
delete in class AbstractFileEntityDeletionFailedException - if an error occurred
protected void copy()
throws EntityCopyCutFailedException
AbstractFile
copy in class AbstractFileEntityCopyCutFailedException - if an error occurred
protected void paste()
throws EntityPasteFailedException
AbstractFile
paste in class AbstractFileEntityPasteFailedException - if an error occurredprotected boolean isFolderish()
AbstractFileFolderish files like directories or zip files may contain other files.
isFolderish in class AbstractFilepublic java.lang.String getFileContents()
AbstractFile
getFileContents in class AbstractFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||