|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.designwizard.design.AbstractEntity
public abstract class AbstractEntity
Abstract class that represent the entities of Design.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.designwizard.design.Entity |
---|
Entity.TypesOfEntities |
Field Summary | |
---|---|
protected java.util.Collection<Modifier> |
modifiers
|
protected java.lang.String |
name
|
protected java.util.Map<Relation.TypesOfRelation,java.util.Set<Relation>> |
relations
Attributes The relations Map contains all the relations that this AbstractEntity is the caller. |
protected Entity.TypesOfEntities |
type
|
Constructor Summary | |
---|---|
protected |
AbstractEntity()
|
Method Summary | |
---|---|
void |
addModifier(Modifier modifier)
This method is used to add a Modifier on this Entity . |
void |
addModifiers(java.util.Collection<Modifier> modifiers)
This method is used to add a Collection of Modifier on this Entity . |
void |
addRelation(Relation relation)
Adds a relation for this entity. |
boolean |
containsModifiers(Modifier... modifiers)
Verifies whether this Entity has the specified modifiers. |
boolean |
containsRelation(Relation relation)
Method that verifies if the Entity has the specified relation. |
abstract java.util.Set<ClassNode> |
getCalleeClasses()
Returns the classes that are referenced by this Entity. |
abstract java.util.Set<ClassNode> |
getCallerClasses()
Returns the classes that reference this Entity. |
java.util.Collection<Modifier> |
getModifiers()
Returns the visibility of this Method . |
java.lang.String |
getName()
Method that returns the description of this design element. |
java.util.Set<Relation> |
getRelations(Relation.TypesOfRelation type)
Method that returns all the relations with the specified type. |
java.lang.String |
getShortName()
Returns the short name of this Entity . |
Entity.TypesOfEntities |
getTypeOfEntity()
Method that returns the type of this element of design. |
Modifier |
getVisibility()
Returns the visibility of this Entity . |
int |
hashCode()
|
boolean |
isAbstract()
Verifies if this Entity is abstract. |
boolean |
removeRelation(Relation relation)
Removes a relation from this Entity . |
java.lang.String |
toString()
A String representation for the Entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.designwizard.design.Entity |
---|
getCalleeMethods, getCalleePackages, getCallerMethods, getCallerPackages, getClassName, getClassNode, getImpactOfAChange, getPackage |
Field Detail |
---|
protected java.util.Map<Relation.TypesOfRelation,java.util.Set<Relation>> relations
protected java.lang.String name
protected Entity.TypesOfEntities type
protected java.util.Collection<Modifier> modifiers
Constructor Detail |
---|
protected AbstractEntity()
Method Detail |
---|
public java.lang.String getShortName()
Entity
Entity
.
The short name of an attribute is just its name.
For example, if the short name of attribute out from class System
is out but not java.lang.System.out.
The short name of a method is just its name and signature.
For example, the short name of clone method from Object class is clone() but not java.lang.Object.clone().
The short name of a class is just its name. Not the fully qualified name.
For example, the short name of Object class is Object but not java.lang.Object.
getShortName
in interface Entity
Entity
.public abstract java.util.Set<ClassNode> getCalleeClasses()
Entity
getCalleeClasses
in interface Entity
public abstract java.util.Set<ClassNode> getCallerClasses()
Entity
getCallerClasses
in interface Entity
public Modifier getVisibility()
Entity
Entity
.
getVisibility
in interface Entity
public void addRelation(Relation relation)
addRelation
in interface Entity
relation
- the relation to be added.public boolean removeRelation(Relation relation)
Entity
.
removeRelation
in interface Entity
Relation
- the relation to be removed.
Entity
contains the specified relation.public java.lang.String getName()
getName
in interface Entity
public Entity.TypesOfEntities getTypeOfEntity()
getTypeOfEntity
in interface Entity
public void addModifier(Modifier modifier)
Entity
Modifier
on this Entity
.
addModifier
in interface Entity
public void addModifiers(java.util.Collection<Modifier> modifiers)
Entity
Collection
of Modifier
on this Entity
.
addModifiers
in interface Entity
public boolean containsModifiers(Modifier... modifiers)
Entity
Entity
has the specified modifiers.
containsModifiers
in interface Entity
Entity
has the specified modifiers or false otherwise.public java.util.Collection<Modifier> getModifiers()
Method
.
getModifiers
in interface Entity
Method
.public boolean containsRelation(Relation relation)
containsRelation
in interface Entity
relation
- the relation to be verified.
public java.util.Set<Relation> getRelations(Relation.TypesOfRelation type)
getRelations
in interface Entity
type
- the type of the relation.
Relation
of
the specified type, an empty Setpublic boolean isAbstract()
Entity
Entity
is abstract.
isAbstract
in interface Entity
Entity
is abstract; false otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |