Package de.dlr.proseo.storagemgr.model
Interface StorageFile
- All Known Implementing Classes:
PosixStorageFile,S3StorageFile
public interface StorageFile
Storage File Structure. The file can exist or it can be just an abstract
structure.
- Author:
- Denys Chaykovskiy
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the base pathGets the bucketGets extension from file nameGets file nameGets the full pathGets relative pathGets storage typebooleanChecks if path is a directory pathvoidsetBasePath(String basePath) Sets the base pathvoidSets the bucketvoidsetRelativePath(String relativePath) Sets relative path
-
Field Details
-
NO_BUCKET
No bucket is an empty string- See Also:
-
-
Method Details
-
getFullPath
String getFullPath()Gets the full path- Returns:
- the full path
-
getBasePath
String getBasePath()Gets the base path- Returns:
- the base path
-
setBasePath
Sets the base path- Parameters:
basePath- base path
-
getBucket
String getBucket()Gets the bucket- Returns:
- the bucket
-
setBucket
Sets the bucket- Parameters:
bucket- the bucket
-
getRelativePath
String getRelativePath()Gets relative path- Returns:
- relative path
-
setRelativePath
Sets relative path- Parameters:
relativePath- relative path
-
getFileName
String getFileName()Gets file name- Returns:
- file name
-
getStorageType
StorageType getStorageType()Gets storage type- Returns:
- storage type
-
getExtension
String getExtension()Gets extension from file name- Returns:
- extension
-
isDirectory
boolean isDirectory()Checks if path is a directory path- Returns:
- true if directory
-