Class 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 Detail

      • ErdDataPart

        public ErdDataPart​(String name,
                           Collection<String> values)
        Constructor
        Parameters:
        name - - data part name. Can't be null.
        values - - data part values. Given values should not be empty. Can't be null.
    • Method Detail

      • setRelationType

        public void setRelationType​(int type)
        Sets data part relation type.
        Parameters:
        type - - relation type to set. Can't be null.
        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.