|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpojos.DataObject
pojos.FileData
public class FileData
DataObject used to handle the file visible via FS.
Constructor Summary | |
---|---|
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 | |
---|---|
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. |
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 |
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.