Class DataList
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.core.workflow.DataList
-
- All Implemented Interfaces:
Data,Serializable
public class DataList extends Object implements Serializable
This class define a data list.- Since:
- 2.0
- Author:
- Laurent Jourdren
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataaddDataToList(String name)Add a data to the list of data.DataaddDataToList(String name, int part)Add a data to the list of data.DataFilegetDataFile()Get the DataFile for an input DataType and a Sample.DataFilegetDataFile(int fileIndex)Get the DataFile for an input DataType and a Sample.intgetDataFileCount()Count 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.StringgetDataFilename()Get the pathname for the data.StringgetDataFilename(int fileIndex)Get the pathname for the data.DataFormatgetFormat()Get the data format of the data.List<Data>getListElements()Get the the list of data.DataMetadatagetMetadata()Get metadata about the data.StringgetName()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.StringtoString()
-
-
-
Method Detail
-
addDataToList
public Data addDataToList(String name)
Description copied from interface:DataAdd a data to the list of data.- Specified by:
addDataToListin interfaceData- Parameters:
name- name of the data- Returns:
- the data object added to the list
-
addDataToList
public Data addDataToList(String name, int part)
Description copied from interface:DataAdd a data to the list of data.- Specified by:
addDataToListin interfaceData- 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.
-
getListElements
public List<Data> getListElements()
Description copied from interface:DataGet the the list of data.- Specified by:
getListElementsin interfaceData- Returns:
- a list even if the data is not a list
-
getMetadata
public DataMetadata getMetadata()
Description copied from interface:DataGet metadata about the data.- Specified by:
getMetadatain interfaceData- Returns:
- a map with the metadata entries
-
getDataFilename
public String getDataFilename()
Description copied from interface:DataGet the pathname for the data.- Specified by:
getDataFilenamein interfaceData- Returns:
- a String with the pathname
-
getDataFilename
public String getDataFilename(int fileIndex)
Description copied from interface:DataGet the pathname for the data. This method works only for a multi-file DataFormat.- Specified by:
getDataFilenamein interfaceData- Parameters:
fileIndex- file index for multi-file data- Returns:
- a String with the pathname
-
getDataFile
public DataFile getDataFile()
Description copied from interface:DataGet the DataFile for an input DataType and a Sample.- Specified by:
getDataFilein interfaceData- Returns:
- a new DataFile object
-
getDataFile
public DataFile getDataFile(int fileIndex)
Description copied from interface:DataGet the DataFile for an input DataType and a Sample. This method works only for a multi-file DataFormat.- Specified by:
getDataFilein interfaceData- 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.- Specified by:
getDataFileCountin interfaceData- 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.- Specified by:
getDataFileCountin interfaceData- Parameters:
existingFiles- if true return the number of files that really exists- Returns:
- the number of multi-file for the DataFormat and the sample
-
getFormat
public DataFormat 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.
-
-