|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Folder
This interface extends FileElement and represents a folder on disk.
FileElement| Method Summary | |
|---|---|
Folder |
createSubFolder(java.lang.String name)
This method creates a sub-folder inside this folder. |
java.util.Collection<FileElement> |
getContents()
This method returns a Collection containing all the
FileElements contained in this Folder. |
java.util.Collection<Folder> |
getFolders()
This method returns a Collection containing all the
sub-Folders contained in this Folder. |
java.util.Collection<Image> |
getImages()
This method returns a Collection containing all the Images
contained in this Folder. |
boolean |
isRoot()
This method returns true if this Folder
object represents the on disk root (or home) directory of the
ImageOrganizer library. |
| Methods inherited from interface imageorg.FileElement |
|---|
addAnnotation, copy, delete, getAnnotations, getName, move, removeAnnotation, rename |
| Method Detail |
|---|
boolean isRoot()
true if this Folder
object represents the on disk root (or home) directory of the
ImageOrganizer library. Otherwise, it returns
false.
true if this Folder is the root.
Folder createSubFolder(java.lang.String name)
throws java.lang.Exception
Folder object representing the
newly created disk folder. If the supplied folder name already exists as a
sub-folder inside this folder then null should be returned.
name - the name of the sub-folder to create
Folder object representing the new sub-folder or
null if the Folder already exists.
java.lang.Exception - if something goes wrong during folder creation.java.util.Collection<FileElement> getContents()
Collection containing all the
FileElements contained in this Folder. If this Folder
is empty, then the returned Collection will be empty
(i.e. of size 0).
Collection valuejava.util.Collection<Image> getImages()
Collection containing all the Images
contained in this Folder. If there are no Images in
this Folder then the returned Collection will be empty
(i.e. of size 0).
Collection valuejava.util.Collection<Folder> getFolders()
Collection containing all the
sub-Folders contained in this Folder. If there are
no sub-Folders in this Folder then the returned
Collection will be empty (i.e. of size 0).
Collection value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||