Package fr.igred.omero.annotations
Class FileAnnotationWrapper
java.lang.Object
fr.igred.omero.GenericObjectWrapper<T>
fr.igred.omero.annotations.GenericAnnotationWrapper<FileAnnotationData>
fr.igred.omero.annotations.FileAnnotationWrapper
Class containing a FileAnnotationData object.
Wraps function calls to the FileAnnotationData contained.
-
Field Summary
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
Constructor Summary
ConstructorsConstructorDescriptionFileAnnotationWrapper
(FileAnnotationData annotation) Constructor of the GenericAnnotationWrapper class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the FileAnnotationData contained.Returns the file to upload to the server.Returns the absolute path to the fileReturns the original file.Returns the format of the uploaded file.long
Returns the ID of the file.Returns a user readable description of the file.Returns the name of the file.Returns the absolute path to the file.long
Returns the size of the file.Returns the format of the original file.Returns the file format as defined by the specification, corresponding to the file extension.boolean
Returnstrue
if it is a movie file.Methods inherited from class fr.igred.omero.annotations.GenericAnnotationWrapper
countAnnotationLinks, getDatasets, getDescription, getFolders, getImages, getLastModified, getNameSpace, getPlateAcquisitions, getPlates, getProjects, getScreens, getWells, setDescription, setNameSpace
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Constructor Details
-
FileAnnotationWrapper
Constructor of the GenericAnnotationWrapper class.- Parameters:
annotation
- FileAnnotationData to wrap.
-
-
Method Details
-
getOriginalMimetype
Returns the format of the original file.- Returns:
- See above.
-
getServerFileMimetype
Returns the file format as defined by the specification, corresponding to the file extension.- Returns:
- See above.
-
getFileFormat
Returns the format of the uploaded file.- Returns:
- See above.
-
getFileKind
Returns a user readable description of the file.- Returns:
- See above.
-
getAttachedFile
Returns the file to upload to the server.- Returns:
- See above.
-
getFileName
Returns the name of the file.- Returns:
- See above.
-
getFilePath
Returns the absolute path to the file.- Returns:
- See above.
-
getFileSize
public long getFileSize()Returns the size of the file.- Returns:
- See above.
-
getFileID
public long getFileID()Returns the ID of the file.- Returns:
- See above.
-
getFile
public File getFile(Client client, String path) throws IOException, ServiceException, OMEROServerError Returns the original file.- Parameters:
client
- The client handling the connection.path
- The path where the file will be saved.- Returns:
- See above.
- Throws:
ServiceException
- Cannot connect to OMERO.IOException
- Cannot write to the file.OMEROServerError
- Server error.
-
getContentAsString
Returns the absolute path to the file- Returns:
- See above.
- See Also:
-
isMovieFile
public boolean isMovieFile()Returnstrue
if it is a movie file.false
otherwise.- Returns:
- See above.
-
asFileAnnotationData
Deprecated.Gets the FileAnnotationData contained.- Returns:
- the
FileAnnotationData
contained. UseGenericObjectWrapper.asDataObject()
instead.
-