public class ImportableFile extends Object
Constructor and Description |
---|
ImportableFile(File file,
boolean folderAsContainer)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
ImportableFile |
copy()
Returns a copy of the object.
|
DatasetData |
getDataset()
Returns the dataset.
|
File |
getFile()
Returns the object to import.
|
GroupData |
getGroup()
Returns the group.
|
File |
getOriginalFile()
Returns the object to import.
|
DataObject |
getParent()
Returns the parent, either a project or a screen.
|
Object |
getRefNode()
Returns the node of reference if set.
|
ImportCallback |
getStatus()
Returns the component used to notify of the progress.
|
ExperimenterData |
getUser()
Returns the user.
|
boolean |
isFolderAsContainer()
Returns
true to make the folder a container e.g. a dataset,
false otherwise. |
void |
setFile(File file)
Sets the file.
|
void |
setFolderAsContainer(boolean folderAsContainer)
Sets the flag indicating to create a container from the folder.
|
void |
setGroup(GroupData group)
Sets the group.
|
void |
setLocation(DataObject parent,
DatasetData dataset)
Sets where to import the files.
|
void |
setRefNode(Object refNode)
Sets the node of reference if set.
|
void |
setStatus(ImportCallback status)
Sets the component used to notify of the progress.
|
void |
setUser(ExperimenterData user)
Sets the user.
|
String |
toString()
Returns the details about the absolute path, group id and user id.
|
public ImportableFile(File file, boolean folderAsContainer)
file
- The object to import.folderAsContainer
- Pass true
to make the folder a
container e.g. a dataset, false
otherwise.public void setFolderAsContainer(boolean folderAsContainer)
folderAsContainer
- Pass true
to make the folder a
container e.g. a dataset, false
otherwise.public void setLocation(DataObject parent, DatasetData dataset)
parent
- The parent either a project or a screen.dataset
- The dataset where to import the images.public DataObject getParent()
public DatasetData getDataset()
public File getFile()
public File getOriginalFile()
public boolean isFolderAsContainer()
true
to make the folder a container e.g. a dataset,
false
otherwise.public void setStatus(ImportCallback status)
status
- The component to set.public ImportCallback getStatus()
public Object getRefNode()
public void setRefNode(Object refNode)
refNode
- The node to set.public void setFile(File file)
file
- The value to set.public void setGroup(GroupData group)
group
- The group where to import the data.public GroupData getGroup()
public void setUser(ExperimenterData user)
user
- The user to import data and set as the owner.public ExperimenterData getUser()
public ImportableFile copy()
public String toString()
toString
in class Object
toString()
Version: 5.2.1-ice35-b15
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.