|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpojos.DataObject
pojos.AnnotationData
pojos.FileAnnotationData
public class FileAnnotationData
Annotation to upload files to the server.
Field Summary | |
---|---|
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 |
EDITOR_EXPERIMENT_NS
The name space used to indicate that the FileAnnotation
is an experiment. |
static String |
EDITOR_PROTOCOL_NS
The name space used to indicate that the FileAnnotation
is a protocol. |
static String |
HTM
Identifies the HTM file formats. |
static String |
HTML
Identifies the HTML file formats. |
static String |
MEASUREMENT_NS
The name space used to indicate that the FileAnnotation
is a Measurement file. |
static String |
MOVIE_MPEG_NS
The name space used to indicate that the FileAnnotation
is an MPEG file. |
static String |
MOVIE_QUICK_TIME_NS
The name space used to indicate that the FileAnnotation
is an Quick Time file. |
static String |
MOVIE_WINDOWS_MEDIA_NS
The name space used to indicate that the FileAnnotation
is an Windows Media file. |
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 |
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. |
Constructor Summary | |
---|---|
FileAnnotationData(File file)
Creates a new instance. |
|
FileAnnotationData(omero.model.FileAnnotation annotation)
Creates a new instance. |
Method Summary | |
---|---|
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 |
getOriginalFormat()
Returns the format of the original file. |
String |
getServerFileFormat()
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. |
Methods inherited from class pojos.AnnotationData |
---|
getLastModified, getNameSpace, setNameSpace |
Methods inherited from class pojos.DataObject |
---|
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, getCreated, getDetails, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String COMPANION_FILE_NS
FileAnnotation
is a companion file.
public static final String EDITOR_PROTOCOL_NS
FileAnnotation
is a protocol.
public static final String EDITOR_EXPERIMENT_NS
FileAnnotation
is an experiment.
public static final String MOVIE_MPEG_NS
FileAnnotation
is an MPEG
file.
public static final String MOVIE_QUICK_TIME_NS
FileAnnotation
is an Quick Time
file.
public static final String MOVIE_WINDOWS_MEDIA_NS
FileAnnotation
is an Windows Media
file.
public static final String MEASUREMENT_NS
FileAnnotation
is a Measurement
file.
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
Constructor Detail |
---|
public FileAnnotationData(File file)
file
- The file to attach.public FileAnnotationData(omero.model.FileAnnotation annotation)
annotation
- The annotation to wrap.Method Detail |
---|
public String getOriginalFormat()
public void setDescription(String description)
description
- The value to set.public String getDescription()
public String getServerFileFormat()
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 AnnotationData
AnnotationData.getContent()
public String getContentAsString()
getContentAsString
in class AnnotationData
AnnotationData.getContentAsString()
public boolean isMovieFile()
true
if it is a movie file.
false
otherwise.
public void setContent(Object content)
setContent
in class AnnotationData
content
- The value to set.AnnotationData.setContent(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.