Interface FileResource
-
- All Superinterfaces:
Identifiable
- All Known Subinterfaces:
ApplicationFileResource,AudioFileResource,ImageFileResource,LinkedDataFileResource,TextFileResource,VideoFileResource
- All Known Implementing Classes:
ApplicationFileResourceImpl,AudioFileResourceImpl,FileResourceImpl,ImageFileResourceImpl,LinkedDataFileResourceImpl,TextFileResourceImpl,VideoFileResourceImpl
public interface FileResource extends Identifiable
A FileResource (source) describes any file, regardless of its physical location, used storage technology or required display means (aka "Viewer"). A FileResource can e.g. include an image, a video file, an XML document, or a JSON file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetFilename()StringgetFilenameExtension()LicensegetLicense()MimeTypegetMimeType()longgetSizeInBytes()URIgetUri()booleanisReadonly()voidsetFilename(String filename)voidsetLicense(License license)voidsetMimeType(MimeType mimeType)voidsetReadonly(boolean readonly)voidsetSizeInBytes(long sizeInBytes)voidsetUri(URI uri)-
Methods inherited from interface de.digitalcollections.model.api.identifiable.Identifiable
addIdentifier, getCreated, getDescription, getIdentifierByNamespace, getIdentifiers, getLabel, getLastModified, getPreviewImage, getType, getUuid, setCreated, setDescription, setIdentifiers, setLabel, setLastModified, setPreviewImage, setType, setUuid
-
-
-
-
Method Detail
-
getSizeInBytes
long getSizeInBytes()
-
setSizeInBytes
void setSizeInBytes(long sizeInBytes)
-
getMimeType
MimeType getMimeType()
-
setMimeType
void setMimeType(MimeType mimeType)
-
getFilename
String getFilename()
-
setFilename
void setFilename(String filename)
-
getFilenameExtension
String getFilenameExtension()
-
getLicense
License getLicense()
-
setLicense
void setLicense(License license)
-
isReadonly
boolean isReadonly()
-
setReadonly
void setReadonly(boolean readonly)
-
getUri
URI getUri()
-
setUri
void setUri(URI uri)
-
-