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