Package com._1c.g5.v8.dt.erd.model
Class ErdDataPart
- java.lang.Object
-
- com._1c.g5.v8.dt.diagram.framework.model.DataPart
-
- com._1c.g5.v8.dt.erd.model.ErdDataPart
-
public class ErdDataPart extends com._1c.g5.v8.dt.diagram.framework.model.DataPart
DataPart
implementation for ERD diagram. ERD data part contains relation type.
-
-
Constructor Summary
Constructors Constructor Description ErdDataPart(String name, Collection<String> values)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRelationType()
Returns data part relation type.Collection<String>
getValueToShow()
Returns data part value to show in UI.void
setRelationType(int type)
Sets data part relation type.
-
-
-
Constructor Detail
-
ErdDataPart
public ErdDataPart(String name, Collection<String> values)
Constructor- Parameters:
name
- - data part name. Can't benull
.values
- - data part values. Given values should not be empty. Can't benull
.
-
-
Method Detail
-
setRelationType
public void setRelationType(int type)
Sets data part relation type.- Parameters:
type
- - relation type to set. Can't benull
.- See Also:
IErdRelationTypes
-
getRelationType
public int getRelationType()
Returns data part relation type.- Returns:
- data part relation type.
- See Also:
IErdRelationTypes
-
getValueToShow
public Collection<String> getValueToShow()
Returns data part value to show in UI.- Returns:
- data part value to show in UI. Can't return
null
.
-
-