Class DataUtils
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.core.DataUtils
-
public final class DataUtils extends Object
This class define an utility on data object.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<DataFile>
getDataFiles(Data data)
Get the list of the DataFile objects in a Data object.static void
setDataFile(Data data, DataFile dataFile)
Change the DataFile in a Data objectstatic void
setDataFiles(Data data, List<DataFile> dataFiles)
Change the DataFiles in a Data objectstatic void
setDataMetadata(Data data, Collection<Data> dataSourceOfMetadata)
Set the metadata of a data object from the information of another data object.static void
setDataMetaData(Data data, Sample sample)
Set the metadata of a data object from the information of a Sample object from a Design.
-
-
-
Method Detail
-
getDataFiles
public static List<DataFile> getDataFiles(Data data)
Get the list of the DataFile objects in a Data object.- Parameters:
data
- data object- Returns:
- a list of DataFile objects
-
setDataFile
public static void setDataFile(Data data, DataFile dataFile)
Change the DataFile in a Data object- Parameters:
data
- Data object to modifydataFile
- new DataFile
-
setDataFiles
public static void setDataFiles(Data data, List<DataFile> dataFiles)
Change the DataFiles in a Data object- Parameters:
data
- Data object to modifydataFiles
- DataFiles to set
-
setDataMetadata
public static void setDataMetadata(Data data, Collection<Data> dataSourceOfMetadata)
Set the metadata of a data object from the information of another data object.- Parameters:
data
- the data objectdataSourceOfMetadata
- data source of metadata
-
-