|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.model.mapper.AbstractMappable
pl.edu.agh.cast.model.base.Entity
@Mapping public class Entity
Default IEntity implementation. It is mapped to the base model.
IEntity,
Mapping,
Serialized Form| Field Summary | |
|---|---|
protected boolean |
isMain
This flag indicates if the node somehow stands out (e.g. |
protected List<IRelation> |
sourceRelations
Source relations are relations which have this entity as their source. |
protected List<IRelation> |
targetRelations
Target relations are relations which have this entity as their target. |
| Fields inherited from class pl.edu.agh.cast.model.mapper.AbstractMappable |
|---|
id |
| Constructor Summary | |
|---|---|
Entity()
Default constructor needed by the mapping mechanism. |
|
Entity(String value)
Parametrized constructor. |
|
| Method Summary | |
|---|---|
void |
addRelation(IRelation relation)
Add new relation to relations of this entity. |
Entity |
clone()
The clone of the entity. |
boolean |
equals(Object other)
|
boolean |
getIsMain()
Main entity setter. |
List<IRelation> |
getSourceRelations()
Source relations (getter). |
List<IRelation> |
getTargetRelations()
Target relations (getter). |
int |
hashCode()
|
boolean |
isConnected(IEntity entity)
Returns true if the entity is directly connected with given entity. |
void |
removeRelation(IRelation relation)
Remove relation from this entity. |
void |
setIsMain(boolean main)
Set true if the number is main. |
void |
setIsMain(Boolean main)
|
void |
setSourceRelations(List<IRelation> srcCalls)
Source relations (setter). |
void |
setTargetRelations(List<IRelation> dstCalls)
Target relations (setter). |
| Methods inherited from class pl.edu.agh.cast.model.mapper.AbstractMappable |
|---|
getAttribute, getAttributeNames, getAttributeType, getId, getMid, getType, setAttribute, setId, setMid, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface pl.edu.agh.cast.model.base.IEntity |
|---|
getId, setId |
| Methods inherited from interface pl.edu.agh.cast.model.mapper.Mappable |
|---|
getAttribute, getAttributeNames, getAttributeType, getMid, getType, setAttribute, setMid |
| Field Detail |
|---|
protected List<IRelation> sourceRelations
protected List<IRelation> targetRelations
protected boolean isMain
| Constructor Detail |
|---|
public Entity()
public Entity(String value)
value - The id of the entity.| Method Detail |
|---|
public void addRelation(IRelation relation)
addRelation in interface IEntityrelation - The relation to addIEntity.addRelation(pl.edu.agh.cast.model.base.IRelation)public void removeRelation(IRelation relation)
removeRelation in interface IEntityrelation - The relation to remove.IEntity.removeRelation(pl.edu.agh.cast.model.base.IRelation)@MapLink(name="relationSource") public List<IRelation> getSourceRelations()
getSourceRelations in interface IEntityIEntity.getSourceRelations()public void setSourceRelations(List<IRelation> srcCalls)
setSourceRelations in interface IEntitysrcCalls - Relations to setIEntity.setSourceRelations(java.util.List)
@MapLink(name="relationTarget",
direction=DST)
public List<IRelation> getTargetRelations()
getTargetRelations in interface IEntityIEntity.getTargetRelations()public void setTargetRelations(List<IRelation> dstCalls)
setTargetRelations in interface IEntitydstCalls - The relations to setIEntity.setTargetRelations(java.util.List)@MapAttribute(typeName="IsMain") public boolean getIsMain()
public void setIsMain(boolean main)
main - The "main" flaggetIsMain().public void setIsMain(Boolean main)
public boolean isConnected(IEntity entity)
isConnected in interface IEntityentity - The entity checked for connection.
IEntity.isConnected(pl.edu.agh.cast.model.base.IEntity)public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object other)
equals in class ObjectObject.equals(java.lang.Object)public Entity clone()
clone in interface Mappableclone in class AbstractMappableCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||