Skip to content
Snippets Groups Projects
Commit a1f04d4b authored by felmer's avatar felmer
Browse files

implement toString()

SVN: 16311
parent 60f59286
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@
package ch.systemsx.cisd.openbis.generic.shared.basic;
import java.util.Arrays;
/**
* @author Izabela Adamczyk
*/
......@@ -99,6 +101,30 @@ public class DataSetUploadInfo
{
this.parents = parents;
}
@Override
public String toString()
{
// TODO Auto-generated method stub
StringBuilder builder = new StringBuilder();
if (sample != null)
{
builder.append("sample:").append(sample).append(", ");
}
if (experiment != null)
{
builder.append("experiment:").append(experiment).append(", ");
}
if (parents != null && parents.length > 0)
{
builder.append("parent data set:").append(Arrays.asList(parents)).append(", ");
}
builder.append("data set type:").append(dataSetType).append(", ");
builder.append("file type:").append(fileType);
return builder.toString();
}
public static class DataSetUploadInfoHelper
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment