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 |
---|---|
String |
getAbsolutePath()
Returns the absolute path.
|
String |
getDescription()
Returns the description of the file.
|
String |
getName()
Returns the name of the file.
|
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(String description)
Sets the description.
|
void |
setRegisteredFile(omero.model.OriginalFile object)
Sets the registered file.
|
void |
setRepositoryPath(String path)
Sets the path to the parent.
|
asAnnotation, 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, 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 String getDescription()
public void setDescription(String description)
description
- The value to set.public void setRepositoryPath(String path)
path
- The value to set.public String getName()
public String getPath()
public 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.
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.