Package com._1c.g5.v8.dt.erd.model
Class ErdDiagramCore
- java.lang.Object
-
- com._1c.g5.v8.dt.diagram.framework.model.AbstractDiagramCore<IErdEntity,com._1c.g5.v8.dt.diagram.framework.IRelation>
-
- com._1c.g5.v8.dt.erd.model.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 ofIErdDiagramCore
.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOGGER
Logger for logging exceptions.
-
Constructor Summary
Constructors Constructor Description ErdDiagramCore(Collection<IErdEntity> entities)
Constructor.ErdDiagramCore(Collection<IErdEntity> entities, Collection<com._1c.g5.v8.dt.diagram.framework.IRelation> relations)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntities(Collection<? extends IErdEntity> entitiesToAdd)
void
addRelations(Collection<? extends com._1c.g5.v8.dt.diagram.framework.IRelation> relations)
Object
getData()
Returns data contained in diagram.void
recreateRelations()
Recreates relations.void
removeEntities(Collection<? extends IErdEntity> entitiesToRemove)
void
removeRelations(Collection<? extends com._1c.g5.v8.dt.diagram.framework.IRelation> relations)
void
setData(Object data)
Sets data contained in diagram.-
Methods inherited from class com._1c.g5.v8.dt.diagram.framework.model.AbstractDiagramCore
equals, getEntities, getRelations, hashCode, toString
-
-
-
-
Constructor Detail
-
ErdDiagramCore
public ErdDiagramCore(Collection<IErdEntity> entities)
Constructor.- Parameters:
entities
- - entities of this diagram. Can't benull
.
-
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 benull
.relations
- - relations of this diagram. Can't benull
.
-
-
Method Detail
-
addEntities
public void addEntities(Collection<? extends IErdEntity> entitiesToAdd)
- Specified by:
addEntities
in interfacecom._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,com._1c.g5.v8.dt.diagram.framework.IRelation>
- Overrides:
addEntities
in classcom._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 interfacecom._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,com._1c.g5.v8.dt.diagram.framework.IRelation>
- Overrides:
removeEntities
in classcom._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 interfacecom._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,com._1c.g5.v8.dt.diagram.framework.IRelation>
- Overrides:
addRelations
in classcom._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 interfacecom._1c.g5.v8.dt.diagram.framework.IDiagramCore<IErdEntity,com._1c.g5.v8.dt.diagram.framework.IRelation>
- Overrides:
removeRelations
in classcom._1c.g5.v8.dt.diagram.framework.model.AbstractDiagramCore<IErdEntity,com._1c.g5.v8.dt.diagram.framework.IRelation>
-
recreateRelations
public void recreateRelations()
Description copied from interface:IErdDiagramCore
Recreates relations.- Specified by:
recreateRelations
in interfaceIErdDiagramCore
-
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 interfaceIErdDiagramCore
- 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 interfaceIErdDiagramCore
- Parameters:
data
- - data to set. Can't benull
.
-
-