Package com._1c.g5.v8.dt.erd.model
Class ErdEntityGroup
- java.lang.Object
-
- com._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
-
- com._1c.g5.v8.dt.erd.model.AbstractErdEntity
-
- com._1c.g5.v8.dt.erd.model.ErdEntityGroup
-
- All Implemented Interfaces:
com._1c.g5.v8.dt.diagram.framework.IEntity
,com._1c.g5.v8.dt.diagram.framework.IPosition
,IErdEntity
- Direct Known Subclasses:
ErdSubsystemGroup
public class ErdEntityGroup extends AbstractErdEntity
Implementation ofAbstractErdEntity
. Represents entity that contains other entities inside. Group has relation to each entity that inner entities has relation to.
-
-
Constructor Summary
Constructors Constructor Description ErdEntityGroup(String name, int priority, Collection<IErdEntity> entities, String projectName)
Constructor.ErdEntityGroup(String name, int priority, Collection<IErdEntity> entities, String projectName, int x, int y, int width, int height)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntities(Collection<IErdEntity> entities)
Adds entities to group.void
addRelation(com._1c.g5.v8.dt.diagram.framework.IEntity entity)
boolean
equals(Object object)
Collection<com._1c.g5.v8.dt.diagram.framework.model.Data>
getData()
Collection<IErdEntity>
getEntities()
Returns group entities.int
getEntityType()
String
getProjectName()
Can't returnnull
.int
hashCode()
void
removeEntities(Collection<IErdEntity> entities)
Removes entities from group.void
removeEntity(IErdEntity entity)
Removes entity from group.void
setEntities(Collection<IErdEntity> entities)
Sets group entities.-
Methods inherited from class com._1c.g5.v8.dt.erd.model.AbstractErdEntity
getComment, getConfigurationName, getEClass, getURI
-
Methods inherited from class com._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
getHeight, getName, getPriority, getRelations, getWidth, getX, getY, isStatic, removeRelation, setEntityType, setHeight, setName, setPriority, setStatic, setWidth, setX, setY
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
ErdEntityGroup
public ErdEntityGroup(String name, int priority, Collection<IErdEntity> entities, String projectName)
Constructor.- Parameters:
name
- - entity group name. Can't benull
.priority
- - entity group priority.entities
- - entities that will be in created group. Can't benull
.projectName
- - project name. Can't benull
-
ErdEntityGroup
public ErdEntityGroup(String name, int priority, Collection<IErdEntity> entities, String projectName, int x, int y, int width, int height)
Constructor.- Parameters:
name
- - entity group name. Can't benull
.priority
- - entity group priority.entities
- - entities that will be in created group. Can't benull
.projectName
- - project name. Can't benull
x
- - x coordinate of created group.y
- - y coordinate of created group.width
- - width of created group.height
- - height of created group.
-
-
Method Detail
-
addEntities
public void addEntities(Collection<IErdEntity> entities)
Adds entities to group.- Parameters:
entities
- - entities to add to group. Can't benull
.
-
removeEntities
public void removeEntities(Collection<IErdEntity> entities)
Removes entities from group.- Parameters:
entities
- - entities to remove from group. Can't benull
.
-
removeEntity
public void removeEntity(IErdEntity entity)
Removes entity from group.- Parameters:
entity
- - entity to remove from group. Can't benull
.
-
setEntities
public void setEntities(Collection<IErdEntity> entities)
Sets group entities.- Parameters:
entities
- - entities to set. Can't benull
.
-
getEntities
public Collection<IErdEntity> getEntities()
Returns group entities.- Returns:
- group entities. Can't be
null
.
-
getData
public Collection<com._1c.g5.v8.dt.diagram.framework.model.Data> getData()
-
getEntityType
public int getEntityType()
- Specified by:
getEntityType
in interfacecom._1c.g5.v8.dt.diagram.framework.IEntity
- Overrides:
getEntityType
in classcom._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
-
addRelation
public void addRelation(com._1c.g5.v8.dt.diagram.framework.IEntity entity)
- Specified by:
addRelation
in interfacecom._1c.g5.v8.dt.diagram.framework.IEntity
- Overrides:
addRelation
in classcom._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
-
getProjectName
public String getProjectName()
Can't returnnull
.- Returns:
- associated with this entity project name. Can return
null
.
-
-