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.StringgetAbsolutePath()Returns the absolute path.java.lang.StringgetDescription()Returns the description of the file.java.lang.StringgetName()Returns the name of the file.java.lang.StringgetPath()Returns the (relative) path of the file.booleanisDirectory()Returnstrueif the file is a directory,falseotherwise.booleanisHidden()Returnstrueif the file is hidden,falseotherwise.longlastModified()Returns when the file was last modified.voidsetDescription(java.lang.String description)Sets the description.voidsetRegisteredFile(omero.model.OriginalFile object)Sets the registered file.voidsetRepositoryPath(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- Passtrueif the object is a directory,falseotherwise.
-
FileData
public FileData(omero.model.OriginalFile object, boolean directory, boolean hidden)Creates a new instance.- Parameters:
object- The object to store.directory- Passtrueif the object is a directory,falseotherwise.
-
-
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()
Returnstrueif the file is hidden,falseotherwise.- Returns:
- See above.
-
lastModified
public long lastModified()
Returns when the file was last modified.- Returns:
- See above.
-
isDirectory
public boolean isDirectory()
Returnstrueif the file is a directory,falseotherwise.- Returns:
- See above.
-
-