Class DataList
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.workflow.DataList
- All Implemented Interfaces:
Data,Serializable
This class define a data list.
- Since:
- 2.0
- Author:
- Laurent Jourdren
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddDataToList(String name) Add a data to the list of data.addDataToList(String name, int part) Add a data to the list of data.Get the DataFile for an input DataType and a Sample.getDataFile(int fileIndex) Get the DataFile for an input DataType and a Sample.intCount the number for DataFile available for a multi-file DataFormat and a Sample.intgetDataFileCount(boolean existingFiles) Count the number for DataFile available for a multi-file DataFormat and a Sample.Get the pathname for the data.getDataFilename(int fileIndex) Get the pathname for the data.Get the data format of the data.Get the the list of data.Get metadata about the data.getName()Get data name.intgetPart()Get the part of the data.booleanisEmpty()Test if the number of the elements of the data is equals to 0.booleanisList()Test if the data is a list.intsize()Get the size of the data.toString()
-
Method Details
-
addDataToList
Description copied from interface:DataAdd a data to the list of data.- Parameters:
name- name of the data- Returns:
- the data object added to the list
-
addDataToList
Description copied from interface:DataAdd a data to the list of data.- Parameters:
name- name of the datapart- split part number (-1 for no part)- Returns:
- the data object added to the list
-
getPart
public int getPart()Description copied from interface:DataGet the part of the data. -
isList
public boolean isList()Description copied from interface:DataTest if the data is a list.- Returns:
- true if the data is a list
-
getListElements
Description copied from interface:DataGet the the list of data.- Returns:
- a list even if the data is not a list
-
getMetadata
Description copied from interface:DataGet metadata about the data.- Returns:
- a map with the metadata entries
-
getDataFilename
Description copied from interface:DataGet the pathname for the data.- Returns:
- a String with the pathname
-
getDataFilename
Description copied from interface:DataGet the pathname for the data. This method works only for a multi-file DataFormat.- Parameters:
fileIndex- file index for multi-file data- Returns:
- a String with the pathname
-
getDataFile
Description copied from interface:DataGet the DataFile for an input DataType and a Sample.- Returns:
- a new DataFile object
-
getDataFile
Description copied from interface:DataGet the DataFile for an input DataType and a Sample. This method works only for a multi-file DataFormat.- Parameters:
fileIndex- file index for multi-file data- Returns:
- a new DataFile object
-
getDataFileCount
public int getDataFileCount()Description copied from interface:DataCount the number for DataFile available for a multi-file DataFormat and a Sample. This method works only for a multi-file DataFormat.- Returns:
- the number of multi-file for the DataFormat and the sample
-
getDataFileCount
public int getDataFileCount(boolean existingFiles) Description copied from interface:DataCount the number for DataFile available for a multi-file DataFormat and a Sample. This method works only for a multi-file DataFormat.- Parameters:
existingFiles- if true return the number of files that really exists- Returns:
- the number of multi-file for the DataFormat and the sample
-
toString
-
getName
Description copied from interface:DataGet data name. -
getFormat
Description copied from interface:DataGet the data format of the data. -
size
public int size()Description copied from interface:DataGet the size of the data. -
isEmpty
public boolean isEmpty()Description copied from interface:DataTest if the number of the elements of the data is equals to 0.
-