Package omero.gateway.model
Class FolderData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.FolderData
-
public class FolderData extends DataObject
Pojo wrapper for an OME Folder.
-
-
Constructor Summary
Constructors Constructor Description FolderData()Creates a new instance.FolderData(omero.model.Folder folder)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AnnotationData>copyAnnotationLinks()Copy the list of annotation links, seeFolder.copyAnnotationLinks()java.util.List<FolderData>copyChildFolders()Copy the list of child folders, seeFolder.copyChildFolders()java.util.List<ImageData>copyImageLinks()Copy the list of image links, seeFolder.copyImageLinks()java.util.List<ROIData>copyROILinks()Copy the list of roi links, seeFolder.copyRoiLinks()java.lang.StringgetDescription()Get the description of the Folderjava.lang.StringgetFolderPathString()Returns the folder path as stringjava.lang.StringgetFolderPathString(char pathSeparator)Returns the folder path as string using a custom path separatorjava.lang.StringgetName()Get the name of the FolderFolderDatagetParentFolder()Get the the parent folderintimageCount()Get the number of images linked to this folderintroiCount()Get the number of ROIs linked to this foldervoidsetDescription(java.lang.String desc)Set the description of the FoldervoidsetFolder(omero.model.Folder f)Set theFoldervoidsetName(java.lang.String name)Set the name of the FoldervoidsetParentFolder(omero.model.Folder parent)Set the the parent folderintsubfolderCount()Get the number of sub foldersjava.lang.StringtoString()Overridden to return the name of the class and the object id.-
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
-
-
-
-
Constructor Detail
-
FolderData
public FolderData()
Creates a new instance.
-
FolderData
public FolderData(omero.model.Folder folder)
Creates a new instance.- Parameters:
folder- Back pointer to theFoldermodel object. Mustn't benull.- Throws:
java.lang.IllegalArgumentException- If the object isnull.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the Folder- Returns:
- See above
-
setName
public void setName(java.lang.String name)
Set the name of the Folder- Parameters:
name- The name
-
getDescription
public java.lang.String getDescription()
Get the description of the Folder- Returns:
- See above
-
setDescription
public void setDescription(java.lang.String desc)
Set the description of the Folder- Parameters:
desc- The description
-
getParentFolder
public FolderData getParentFolder()
Get the the parent folder- Returns:
- See above.
-
setParentFolder
public void setParentFolder(omero.model.Folder parent)
Set the the parent folder- Parameters:
parent- The parent folder
-
setFolder
public void setFolder(omero.model.Folder f)
Set theFolder- Parameters:
f- The folder
-
subfolderCount
public int subfolderCount()
Get the number of sub folders- Returns:
- See above.
-
imageCount
public int imageCount()
Get the number of images linked to this folder- Returns:
- See above.
-
roiCount
public int roiCount()
Get the number of ROIs linked to this folder- Returns:
- See above.
-
copyChildFolders
public java.util.List<FolderData> copyChildFolders()
Copy the list of child folders, seeFolder.copyChildFolders()- Returns:
- See above.
-
copyAnnotationLinks
public java.util.List<AnnotationData> copyAnnotationLinks()
Copy the list of annotation links, seeFolder.copyAnnotationLinks()- Returns:
- See above.
-
copyImageLinks
public java.util.List<ImageData> copyImageLinks()
Copy the list of image links, seeFolder.copyImageLinks()- Returns:
- See above.
-
copyROILinks
public java.util.List<ROIData> copyROILinks()
Copy the list of roi links, seeFolder.copyRoiLinks()- Returns:
- See above.
-
toString
public java.lang.String toString()
Description copied from class:DataObjectOverridden to return the name of the class and the object id.- Overrides:
toStringin classDataObject- See Also:
Object.toString()
-
getFolderPathString
public java.lang.String getFolderPathString()
Returns the folder path as string- Returns:
- See above
-
getFolderPathString
public java.lang.String getFolderPathString(char pathSeparator)
Returns the folder path as string using a custom path separator- Parameters:
pathSeparator- The path separator character- Returns:
- See above
-
-