Class NewDataSetMetadataDTO
- java.lang.Object
-
- ch.systemsx.cisd.openbis.dss.generic.shared.api.v1.NewDataSetMetadataDTO
-
- All Implemented Interfaces:
java.io.Serializable
public class NewDataSetMetadataDTO extends java.lang.Object implements java.io.SerializableRepresents optional metadata (data set type and properties) of a new data set that the DSS should register. The server may override the metadata specified here.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NewDataSetMetadataDTO()NewDataSetMetadataDTO(java.lang.String dataSetTypeOrNull, java.util.Map<java.lang.String,java.lang.String> propertiesOrNull)NewDataSetMetadataDTO(java.lang.String dataSetTypeOrNull, java.util.Map<java.lang.String,java.lang.String> propertiesOrNull, java.util.List<java.lang.String> parentDataSetCodesOrNull)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getParentDataSetCodes()The codes of the parent data sets for this new data set.java.util.Map<java.lang.String,java.lang.String>getProperties()The properties for the new data set.java.util.Collection<java.lang.String>getUnmodifiableProperties()The unmodifiable property types (as strings).booleanisUnmodifiableProperty(java.lang.String property)voidsetDataSetTypeOrNull(java.lang.String dataSetTypeOrNull)voidsetParentDataSetCodes(java.util.List<java.lang.String> codesOrNull)Sets the parent data sets of this data set.voidsetProperties(java.util.Map<java.lang.String,java.lang.String> props)voidsetUnmodifiableProperties(java.util.Map<java.lang.String,java.lang.String> props)voidsetUnmodifiableProperties(java.util.Set<java.lang.String> props)java.lang.StringtoString()java.lang.StringtryDataSetType()The code for the type of the new data set.
-
-
-
Constructor Detail
-
NewDataSetMetadataDTO
public NewDataSetMetadataDTO(java.lang.String dataSetTypeOrNull, java.util.Map<java.lang.String,java.lang.String> propertiesOrNull)
-
NewDataSetMetadataDTO
public NewDataSetMetadataDTO(java.lang.String dataSetTypeOrNull, java.util.Map<java.lang.String,java.lang.String> propertiesOrNull, java.util.List<java.lang.String> parentDataSetCodesOrNull)
-
NewDataSetMetadataDTO
public NewDataSetMetadataDTO()
-
-
Method Detail
-
tryDataSetType
public java.lang.String tryDataSetType()
The code for the type of the new data set. May be null.
-
setDataSetTypeOrNull
public void setDataSetTypeOrNull(java.lang.String dataSetTypeOrNull)
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
The properties for the new data set. Key is the property code, value is the value (as a string).
-
getUnmodifiableProperties
public java.util.Collection<java.lang.String> getUnmodifiableProperties()
The unmodifiable property types (as strings).
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> props)
-
setUnmodifiableProperties
public void setUnmodifiableProperties(java.util.Set<java.lang.String> props)
-
setUnmodifiableProperties
public void setUnmodifiableProperties(java.util.Map<java.lang.String,java.lang.String> props)
-
isUnmodifiableProperty
public boolean isUnmodifiableProperty(java.lang.String property)
-
getParentDataSetCodes
public java.util.List<java.lang.String> getParentDataSetCodes()
The codes of the parent data sets for this new data set. The list may be empty.- Since:
- 1.3
-
setParentDataSetCodes
public void setParentDataSetCodes(java.util.List<java.lang.String> codesOrNull)
Sets the parent data sets of this data set.- Parameters:
codesOrNull- If the value is null, the parents are cleared.- Since:
- 1.3
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-