public interface Folder
Modifier and Type | Method and Description |
---|---|
File |
getFile(String fileName)
Returns the file with the specified name.
|
Collection<? extends File> |
getFiles()
Returns a Collection containing all files of this folder.
|
Folder |
getFolder(String folderName)
Returns the folder with the specified name.
|
Collection<? extends Folder> |
getFolders()
Returns a Collection containing all subfolders of this folder.
|
String |
getName()
Returns the folder name.
|
boolean |
hasFile(String fileName)
Tests the existence of a file.
|
String getName() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.Collection<? extends Folder> getFolders() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occursFolder getFolder(String folderName) throws UnknownMetadataException, AmetysRepositoryException
folderName
- the name of the folder.UnknownMetadataException
- if the folder does not exist.AmetysRepositoryException
- if an error occurs.Collection<? extends File> getFiles() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.boolean hasFile(String fileName) throws AmetysRepositoryException
fileName
- the name of the file.AmetysRepositoryException
- if an error occurs.File getFile(String fileName) throws UnknownMetadataException, AmetysRepositoryException
fileName
- the name of the file.UnknownMetadataException
- if the folder does not exist.AmetysRepositoryException
- if an error occurs.