|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.designwizard.design.relation.Relation
public class Relation
This class models a relation between two entities of the code.
Nested Class Summary | |
---|---|
static class |
Relation.TypesOfRelation
Types of relations |
Constructor Summary | |
---|---|
Relation(Entity caller,
Entity called,
Relation.TypesOfRelation type)
Constructs a new ContainRealtion. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Method that verifies if a relation is equals another one. |
Entity |
getCalledEntity()
|
Entity |
getCallerEntity()
|
java.lang.String |
getName()
Returns the name of this Relation . |
Relation.TypesOfRelation |
getType()
Returns a string representing the type of this relation. |
int |
hashCode()
|
boolean |
isEntity()
Method that verifies if this element of design is an Entity or not. |
boolean |
isRelation()
Method that verifies if this element of design is a Relation or not. |
java.lang.String |
toString()
A String representation for the relation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Relation(Entity caller, Entity called, Relation.TypesOfRelation type)
caller
- the caller entity of this relation (the entity that calls another entity.)called
- the called entity of this relation (the entity called by another one.)Method Detail |
---|
public Entity getCallerEntity()
public Entity getCalledEntity()
public java.lang.String toString()
toString
in class java.lang.Object
public Relation.TypesOfRelation getType()
public boolean isEntity()
public boolean isRelation()
public java.lang.String getName()
Relation
.
Relation
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |