public class FileAnnotationData extends AnnotationData
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BULK_ANNOTATIONS_NS
The name space used to indicate that the
FileAnnotation
is a Bulk Annotations file. |
static java.lang.String |
COMPANION_FILE_NS
The name space used to indicate that the
FileAnnotation
is a companion file. |
static java.lang.String |
CSV
Identifies the
CSV file formats. |
static java.lang.String |
EXPERIMENTER_PHOTO_NS
The name space used to identify the experimenter photo.
|
static java.lang.String |
FLIM_NS
Identifies the FLIM namespace.
|
static java.lang.String |
HTM
Identifies the
HTM file formats. |
static java.lang.String |
HTML
Identifies the
HTML file formats. |
static java.lang.String |
LOG_FILE_NS
The name space used to indicate that the
FileAnnotation
is an import log file. |
static java.lang.String |
MEASUREMENT_NS
The name space used to indicate that the
FileAnnotation
is a Measurement file. |
static java.lang.String |
MOVIE_NS
The name space used to indicate that the
FileAnnotation
is a movie. |
static java.lang.String |
MS_EXCEL
Identifies the
Excel file formats. |
static java.lang.String |
MS_POWER_POINT
Identifies the
Power point file formats. |
static java.lang.String |
MS_POWER_POINT_SHOW
Identifies the
Power point file formats. |
static java.lang.String |
MS_POWER_POINT_X
Identifies the
Power point file formats. |
static java.lang.String |
MS_WORD
Identifies the
Word file formats. |
static java.lang.String |
MS_WORD_X
Identifies the
Word file formats. |
static java.lang.String |
ORIGINAL_METADATA_NAME
The default name for the original metadata file.
|
static java.lang.String |
PDF
Identifies the
PDF file formats. |
static java.lang.String |
RTF
Identifies the
RTF file formats. |
static java.lang.String |
TEXT
Identifies the
Text file formats. |
static java.lang.String |
UNKNOWN
Indicates that the format is not recognized.
|
static java.lang.String |
XML
Identifies the
XML file formats. |
FILE_TRANSFER_NS
Constructor and Description |
---|
FileAnnotationData(java.io.File file)
Creates a new instance.
|
FileAnnotationData(omero.model.FileAnnotation annotation)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getAttachedFile()
Returns the file to upload to the server.
|
java.lang.Object |
getContent()
Returns the original file.
|
java.lang.String |
getContentAsString()
Returns the absolute path to the file
|
java.lang.String |
getDescription()
Returns the description of the annotation.
|
java.lang.String |
getFileFormat()
Returns the format of the uploaded file.
|
long |
getFileID()
Returns the id of the file.
|
java.lang.String |
getFileKind()
Returns a user readable description of the file.
|
java.lang.String |
getFileName()
Returns the name of the file.
|
java.lang.String |
getFilePath()
Returns the absolute path to the file.
|
long |
getFileSize()
Returns the size of the file.
|
java.lang.String |
getOriginalMimetype()
Returns the format of the original file.
|
java.lang.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(java.lang.Object content)
Sets the text annotation.
|
void |
setDescription(java.lang.String description)
Sets the description of the annotation.
|
getLastModified, getNameSpace, setNameSpace
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, 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, toString
public static final java.lang.String FLIM_NS
public static final java.lang.String EXPERIMENTER_PHOTO_NS
public static final java.lang.String COMPANION_FILE_NS
FileAnnotation
is a companion file.public static final java.lang.String LOG_FILE_NS
FileAnnotation
is an import log file.public static final java.lang.String MOVIE_NS
FileAnnotation
is a movie.public static final java.lang.String MEASUREMENT_NS
FileAnnotation
is a Measurement
file.public static final java.lang.String BULK_ANNOTATIONS_NS
FileAnnotation
is a Bulk Annotations
file.public static final java.lang.String ORIGINAL_METADATA_NAME
public static final java.lang.String PDF
PDF
file formats.public static final java.lang.String TEXT
Text
file formats.public static final java.lang.String CSV
CSV
file formats.public static final java.lang.String XML
XML
file formats.public static final java.lang.String HTML
HTML
file formats.public static final java.lang.String HTM
HTM
file formats.public static final java.lang.String MS_WORD
Word
file formats.public static final java.lang.String MS_WORD_X
Word
file formats.public static final java.lang.String MS_EXCEL
Excel
file formats.public static final java.lang.String MS_POWER_POINT
Power point
file formats.public static final java.lang.String MS_POWER_POINT_X
Power point
file formats.public static final java.lang.String MS_POWER_POINT_SHOW
Power point
file formats.public static final java.lang.String RTF
RTF
file formats.public static final java.lang.String UNKNOWN
public FileAnnotationData(java.io.File file)
file
- The file to attach.public FileAnnotationData(omero.model.FileAnnotation annotation)
annotation
- The annotation to wrap.public java.lang.String getOriginalMimetype()
public void setDescription(java.lang.String description)
setDescription
in class AnnotationData
description
- The value to set.public java.lang.String getDescription()
getDescription
in class AnnotationData
public java.lang.String getServerFileMimetype()
public java.lang.String getFileFormat()
public java.lang.String getFileKind()
public java.io.File getAttachedFile()
public java.lang.String getFileName()
public java.lang.String getFilePath()
public long getFileSize()
public long getFileID()
public java.lang.Object getContent()
getContent
in class AnnotationData
AnnotationData.getContent()
public java.lang.String getContentAsString()
getContentAsString
in class AnnotationData
AnnotationData.getContentAsString()
public boolean isMovieFile()
true
if it is a movie file.
false
otherwise.public void setContent(java.lang.Object content)
setContent
in class AnnotationData
content
- The value to set.AnnotationData.setContent(Object)
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.