Package omero.gateway.model
Class FileData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.FileData
-
public class FileData extends DataObject
DataObject used to handle the file visible via FS.- Since:
- 3.0-Beta4
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
Returnstrue
if the file is a directory,false
otherwise.boolean
isHidden()
Returnstrue
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.-
Methods inherited from class omero.gateway.model.DataObject
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
-
-
-
-
Constructor Detail
-
FileData
public FileData(omero.model.OriginalFile object)
Creates a new instance.- Parameters:
object
- The object to store.
-
FileData
public FileData(omero.model.OriginalFile object, boolean directory)
Creates a new instance.- Parameters:
object
- The object to store.directory
- Passtrue
if the object is a directory,false
otherwise.
-
FileData
public FileData(omero.model.OriginalFile object, boolean directory, boolean hidden)
Creates a new instance.- Parameters:
object
- The object to store.directory
- Passtrue
if the object is a directory,false
otherwise.
-
-
Method Detail
-
setRegisteredFile
public void setRegisteredFile(omero.model.OriginalFile object)
Sets the registered file.- Parameters:
object
- The object to store.
-
getDescription
public java.lang.String getDescription()
Returns the description of the file.- Returns:
- See above.
-
setDescription
public void setDescription(java.lang.String description)
Sets the description.- Parameters:
description
- The value to set.
-
setRepositoryPath
public void setRepositoryPath(java.lang.String path)
Sets the path to the parent.- Parameters:
path
- The value to set.
-
getName
public java.lang.String getName()
Returns the name of the file.- Returns:
- See above.
-
getPath
public java.lang.String getPath()
Returns the (relative) path of the file.- Returns:
- See above.
-
getAbsolutePath
public java.lang.String getAbsolutePath()
Returns the absolute path.- Returns:
- See above.
-
isHidden
public boolean isHidden()
Returnstrue
if the file is hidden,false
otherwise.- Returns:
- See above.
-
lastModified
public long lastModified()
Returns when the file was last modified.- Returns:
- See above.
-
isDirectory
public boolean isDirectory()
Returnstrue
if the file is a directory,false
otherwise.- Returns:
- See above.
-
-