Class DataUtils


  • public final class DataUtils
    extends Object
    This class define an utility on data object.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • 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 modify
        dataFile - new DataFile
      • setDataFiles

        public static void setDataFiles​(Data data,
                                        List<DataFile> dataFiles)
        Change the DataFiles in a Data object
        Parameters:
        data - Data object to modify
        dataFiles - 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 object
        dataSourceOfMetadata - data source of metadata
      • setDataMetaData

        public static void setDataMetaData​(Data data,
                                           Sample sample)
        Set the metadata of a data object from the information of a Sample object from a Design.
        Parameters:
        data - the data object
        sample - the sample