Class ErdDiagramCore

  • All Implemented Interfaces:
    com._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>, IErdDiagramCore

    public class ErdDiagramCore
    extends com._1c.g5.v8.dt.diagram.framework.model.AbstractDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
    implements IErdDiagramCore
    Implementation of IErdDiagramCore.
    • Field Detail

      • LOGGER

        protected static final org.slf4j.Logger LOGGER
        Logger for logging exceptions.
    • Constructor Detail

      • ErdDiagramCore

        public ErdDiagramCore​(Collection<IErdEntity> entities)
        Constructor.
        Parameters:
        entities - - entities of this diagram. Can't be null.
      • ErdDiagramCore

        public ErdDiagramCore​(Collection<IErdEntity> entities,
                              Collection<com._1c.g5.v8.dt.diagram.framework.IRelation> relations)
        Constructor
        Parameters:
        entities - - entities of this diagram. Can't be null.
        relations - - relations of this diagram. Can't be null.
    • Method Detail

      • addEntities

        public void addEntities​(Collection<? extends IErdEntity> entitiesToAdd)
        Specified by:
        addEntities in interface com._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
        Overrides:
        addEntities in class com._1c.g5.v8.dt.diagram.framework.model.AbstractDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
      • removeEntities

        public void removeEntities​(Collection<? extends IErdEntity> entitiesToRemove)
        Specified by:
        removeEntities in interface com._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
        Overrides:
        removeEntities in class com._1c.g5.v8.dt.diagram.framework.model.AbstractDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
      • addRelations

        public void addRelations​(Collection<? extends com._1c.g5.v8.dt.diagram.framework.IRelation> relations)
        Specified by:
        addRelations in interface com._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
        Overrides:
        addRelations in class com._1c.g5.v8.dt.diagram.framework.model.AbstractDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
      • removeRelations

        public void removeRelations​(Collection<? extends com._1c.g5.v8.dt.diagram.framework.IRelation> relations)
        Specified by:
        removeRelations in interface com._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
        Overrides:
        removeRelations in class com._1c.g5.v8.dt.diagram.framework.model.AbstractDiagramCore<IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
      • getData

        public Object getData()
        Description copied from interface: IErdDiagramCore
        Returns data contained in diagram. Data can be the name of the diagram or some other information.

        User should choose own way of keeping data and override javadoc.
        Specified by:
        getData in interface IErdDiagramCore
        Returns:
        data. Can't be null.
      • setData

        public void setData​(Object data)
        Description copied from interface: IErdDiagramCore
        Sets data contained in diagram. Data can be the name of the diagram or some other information.

        User should choose own way of keeping data and override javadoc.
        Specified by:
        setData in interface IErdDiagramCore
        Parameters:
        data - - data to set. Can't be null.