Class PropertyBuilder
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.builders.PropertyBuilder
-
public class PropertyBuilder extends java.lang.Object
Builder for anEntityProperty
instance.
-
-
Constructor Summary
Constructors Constructor Description PropertyBuilder(java.lang.String key)
Creates an instance for specified property type code which also the simple code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyBuilder
dynamic()
EntityProperty
getProperty()
PropertyBuilder
internal()
Sets property type to internal name space and adds a '$' code prefix.PropertyBuilder
label(java.lang.String label)
PropertyBuilder
managed()
PropertyBuilder
type(DataTypeCode dataType)
PropertyBuilder
value(double value)
PropertyBuilder
value(int value)
PropertyBuilder
value(MaterialBuilder builder)
PropertyBuilder
value(Material value)
PropertyBuilder
value(VocabularyTerm value)
PropertyBuilder
value(java.lang.String value)
PropertyBuilder
value(java.util.Date value)
-
-
-
Constructor Detail
-
PropertyBuilder
public PropertyBuilder(java.lang.String key)
Creates an instance for specified property type code which also the simple code. Data type isDataTypeCode.VARCHAR
.
-
-
Method Detail
-
type
public PropertyBuilder type(DataTypeCode dataType)
-
label
public PropertyBuilder label(java.lang.String label)
-
internal
public PropertyBuilder internal()
Sets property type to internal name space and adds a '$' code prefix.
-
dynamic
public PropertyBuilder dynamic()
-
managed
public PropertyBuilder managed()
-
value
public PropertyBuilder value(java.lang.String value)
-
value
public PropertyBuilder value(int value)
-
value
public PropertyBuilder value(double value)
-
value
public PropertyBuilder value(java.util.Date value)
-
value
public PropertyBuilder value(MaterialBuilder builder)
-
value
public PropertyBuilder value(Material value)
-
value
public PropertyBuilder value(VocabularyTerm value)
-
getProperty
public EntityProperty getProperty()
-
-