Class NewDataSetDTOBuilder
- java.lang.Object
-
- ch.systemsx.cisd.openbis.dss.generic.shared.api.v1.NewDataSetDTOBuilder
-
public class NewDataSetDTOBuilder extends java.lang.Object
A mutable object for building NewDataSetDTO objects.
-
-
Constructor Summary
Constructors Constructor Description NewDataSetDTOBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewDataSetDTO
asNewDataSetDTO()
Convert the builder into a NewDataSetDTO object.NewDataSetMetadataDTO
getDataSetMetadata()
The metadata data for the data set, including type and properties.NewDataSetDTO.DataSetOwner
getDataSetOwner()
The owner may be null during construction but is non-null in a well-formed object.java.lang.String
getDataSetOwnerIdentifier()
The owner identifier may be and empty during construction but is non-null in a well-formed object.NewDataSetDTO.DataSetOwnerType
getDataSetOwnerType()
The owner type should never be null.java.io.File
getFile()
The file that contains the data set.java.util.List<FileInfoDssDTO>
getFileInfos()
void
initializeFromTemplate(NewDataSetDTOBuilder template)
Take over any appropriate values from the template.void
setDataSetOwnerIdentifier(java.lang.String dataSetOwnerIdentifier)
void
setDataSetOwnerType(NewDataSetDTO.DataSetOwnerType dataSetOwnerType)
void
setFile(java.io.File file)
Set the file that contains the data set.
-
-
-
Method Detail
-
getDataSetOwnerIdentifier
public java.lang.String getDataSetOwnerIdentifier()
The owner identifier may be and empty during construction but is non-null in a well-formed object.
-
setDataSetOwnerIdentifier
public void setDataSetOwnerIdentifier(java.lang.String dataSetOwnerIdentifier)
-
getDataSetOwnerType
public NewDataSetDTO.DataSetOwnerType getDataSetOwnerType()
The owner type should never be null.
-
setDataSetOwnerType
public void setDataSetOwnerType(NewDataSetDTO.DataSetOwnerType dataSetOwnerType)
-
getDataSetOwner
public NewDataSetDTO.DataSetOwner getDataSetOwner()
The owner may be null during construction but is non-null in a well-formed object.
-
getDataSetMetadata
public NewDataSetMetadataDTO getDataSetMetadata()
The metadata data for the data set, including type and properties.
-
getFile
public java.io.File getFile()
The file that contains the data set. May be null during initialization but should be non-null in a well-formed data set.
-
setFile
public void setFile(java.io.File file)
Set the file that contains the data set.
-
getFileInfos
public java.util.List<FileInfoDssDTO> getFileInfos()
-
asNewDataSetDTO
public NewDataSetDTO asNewDataSetDTO()
Convert the builder into a NewDataSetDTO object.
-
initializeFromTemplate
public void initializeFromTemplate(NewDataSetDTOBuilder template)
Take over any appropriate values from the template.
-
-