public class FileData extends DataObject
Constructor and Description |
---|
FileData(omero.model.OriginalFile object)
Creates a new instance.
|
FileData(omero.model.OriginalFile object,
boolean directory)
Creates a new instance.
|
FileData(omero.model.OriginalFile object,
boolean directory,
boolean hidden)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAbsolutePath()
Returns the absolute path.
|
java.lang.String |
getDescription()
Returns the description of the file.
|
java.lang.String |
getName()
Returns the name of the file.
|
java.lang.String |
getPath()
Returns the (relative) path of the file.
|
boolean |
isDirectory()
Returns
true if the file is a directory, false
otherwise. |
boolean |
isHidden()
Returns
true if the file is hidden, false
otherwise. |
long |
lastModified()
Returns when the file was last modified.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setRegisteredFile(omero.model.OriginalFile object)
Sets the registered file.
|
void |
setRepositoryPath(java.lang.String path)
Sets the path to the parent.
|
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, 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 FileData(omero.model.OriginalFile object)
object
- The object to store.public FileData(omero.model.OriginalFile object, boolean directory)
object
- The object to store.directory
- Pass true
if the object is a directory,
false
otherwise.public FileData(omero.model.OriginalFile object, boolean directory, boolean hidden)
object
- The object to store.directory
- Pass true
if the object is a directory,
false
otherwise.public void setRegisteredFile(omero.model.OriginalFile object)
object
- The object to store.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The value to set.public void setRepositoryPath(java.lang.String path)
path
- The value to set.public java.lang.String getName()
public java.lang.String getPath()
public java.lang.String getAbsolutePath()
public boolean isHidden()
true
if the file is hidden, false
otherwise.public long lastModified()
public boolean isDirectory()
true
if the file is a directory, false
otherwise.