public class FileAnnotationData extends AnnotationData
| Modifier and Type | Field and Description |
|---|---|
static String |
BULK_ANNOTATIONS_NS
The name space used to indicate that the
FileAnnotation
is a Bulk Annotations file. |
static String |
COMPANION_FILE_NS
The name space used to indicate that the
FileAnnotation
is a companion file. |
static String |
CSV
Identifies the
CSV file formats. |
static String |
EXPERIMENTER_PHOTO_NS
The name space used to identify the experimenter photo.
|
static String |
FLIM_NS
Identifies the FLIM namespace.
|
static String |
HTM
Identifies the
HTM file formats. |
static String |
HTML
Identifies the
HTML file formats. |
static String |
LOG_FILE_NS
The name space used to indicate that the
FileAnnotation
is an import log file. |
static String |
MEASUREMENT_NS
The name space used to indicate that the
FileAnnotation
is a Measurement file. |
static String |
MOVIE_NS
The name space used to indicate that the
FileAnnotation
is a movie. |
static String |
MS_EXCEL
Identifies the
Excel file formats. |
static String |
MS_POWER_POINT
Identifies the
Power point file formats. |
static String |
MS_POWER_POINT_SHOW
Identifies the
Power point file formats. |
static String |
MS_POWER_POINT_X
Identifies the
Power point file formats. |
static String |
MS_WORD
Identifies the
Word file formats. |
static String |
MS_WORD_X
Identifies the
Word file formats. |
static String |
ORIGINAL_METADATA_NAME
The default name for the original metadata file.
|
static String |
PDF
Identifies the
PDF file formats. |
static String |
RTF
Identifies the
RTF file formats. |
static String |
TEXT
Identifies the
Text file formats. |
static String |
UNKNOWN
Indicates that the format is not recognized.
|
static String |
XML
Identifies the
XML file formats. |
FILE_TRANSFER_NS| Constructor and Description |
|---|
FileAnnotationData(File file)
Creates a new instance.
|
FileAnnotationData(omero.model.FileAnnotation annotation)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getAttachedFile()
Returns the file to upload to the server.
|
Object |
getContent()
Returns the original file.
|
String |
getContentAsString()
Returns the absolute path to the file
|
String |
getDescription()
Returns the description of the annotation.
|
String |
getFileFormat()
Returns the format of the uploaded file.
|
long |
getFileID()
Returns the id of the file.
|
String |
getFileKind()
Returns a user readable description of the file.
|
String |
getFileName()
Returns the name of the file.
|
String |
getFilePath()
Returns the absolute path to the file.
|
long |
getFileSize()
Returns the size of the file.
|
String |
getOriginalMimetype()
Returns the format of the original file.
|
String |
getServerFileMimetype()
Returns the file format as defined by the specification, corresponding to
the file extension.
|
boolean |
isMovieFile()
Returns
true if it is a movie file. |
void |
setContent(Object content)
Sets the text annotation.
|
void |
setDescription(String description)
Sets the description of the annotation.
|
getLastModified, getNameSpace, setNameSpaceasAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toStringpublic static final String EXPERIMENTER_PHOTO_NS
public static final String COMPANION_FILE_NS
FileAnnotation
is a companion file.public static final String LOG_FILE_NS
FileAnnotation
is an import log file.public static final String MOVIE_NS
FileAnnotation
is a movie.public static final String MEASUREMENT_NS
FileAnnotation
is a Measurement file.public static final String BULK_ANNOTATIONS_NS
FileAnnotation
is a Bulk Annotations file.public static final String FLIM_NS
public static final String ORIGINAL_METADATA_NAME
public static final String PDF
PDF file formats.public static final String TEXT
Text file formats.public static final String CSV
CSV file formats.public static final String XML
XML file formats.public static final String HTML
HTML file formats.public static final String HTM
HTM file formats.public static final String MS_WORD
Word file formats.public static final String MS_WORD_X
Word file formats.public static final String MS_EXCEL
Excel file formats.public static final String MS_POWER_POINT
Power point file formats.public static final String MS_POWER_POINT_X
Power point file formats.public static final String MS_POWER_POINT_SHOW
Power point file formats.public static final String RTF
RTF file formats.public static final String UNKNOWN
public FileAnnotationData(File file)
file - The file to attach.public FileAnnotationData(omero.model.FileAnnotation annotation)
annotation - The annotation to wrap.public String getOriginalMimetype()
public void setDescription(String description)
setDescription in class AnnotationDatadescription - The value to set.public String getDescription()
getDescription in class AnnotationDatapublic String getServerFileMimetype()
public String getFileFormat()
public String getFileKind()
public File getAttachedFile()
public String getFileName()
public String getFilePath()
public long getFileSize()
public long getFileID()
public Object getContent()
getContent in class AnnotationDataAnnotationData.getContent()public String getContentAsString()
getContentAsString in class AnnotationDataAnnotationData.getContentAsString()public boolean isMovieFile()
true if it is a movie file.
false otherwise.public void setContent(Object content)
setContent in class AnnotationDatacontent - The value to set.AnnotationData.setContent(Object)
Version: 5.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.